From 9d8178a25467345564468cfed8e387bd83eeb508 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 5 Feb 2024 02:57:13 +0100 Subject: [PATCH] Remove unused parameters --- .../main/java/eu/steffo/twom/avatar/components/AvatarUser.kt | 1 - .../java/eu/steffo/twom/login/components/LoginScaffold.kt | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/eu/steffo/twom/avatar/components/AvatarUser.kt b/app/src/main/java/eu/steffo/twom/avatar/components/AvatarUser.kt index 32669f0..32a6dc9 100644 --- a/app/src/main/java/eu/steffo/twom/avatar/components/AvatarUser.kt +++ b/app/src/main/java/eu/steffo/twom/avatar/components/AvatarUser.kt @@ -13,7 +13,6 @@ import org.matrix.android.sdk.api.util.toMatrixItem fun AvatarUser( modifier: Modifier = Modifier, user: User? = null, - fallbackText: String? = null, contentDescription: String = "", alpha: Float = 1.0f, ) { diff --git a/app/src/main/java/eu/steffo/twom/login/components/LoginScaffold.kt b/app/src/main/java/eu/steffo/twom/login/components/LoginScaffold.kt index 16a372c..3eff42c 100644 --- a/app/src/main/java/eu/steffo/twom/login/components/LoginScaffold.kt +++ b/app/src/main/java/eu/steffo/twom/login/components/LoginScaffold.kt @@ -10,14 +10,11 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.tooling.preview.Preview import eu.steffo.twom.theme.components.TwoMTheme -import org.matrix.android.sdk.api.session.Session @Composable @Preview -fun LoginScaffold( - onLogin: (session: Session) -> Unit = {}, -) { +fun LoginScaffold() { val context = LocalContext.current val activity = context as Activity