From f99eaf884ff1a735cdf92f2c82fad7d1ad3386f2 Mon Sep 17 00:00:00 2001 From: Diogo Date: Wed, 4 Sep 2024 15:17:14 +0100 Subject: [PATCH] remove unused code --- .../common/views/chatlist/UserPicker.kt | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt index 676f255a18..162c84462f 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt @@ -80,7 +80,7 @@ fun ShareListUserPicker( } } - BoxWithConstraints { + Box { Column( Modifier .fillMaxSize() @@ -682,31 +682,6 @@ fun UserProfileRow(u: User, enabled: Boolean = chatModel.chatRunning.value == tr } } -@Composable -fun RemoteHostPickerItem(h: RemoteHostInfo, onLongClick: () -> Unit = {}, actionButtonClick: () -> Unit = {}, onClick: () -> Unit) { - Row( - Modifier - .fillMaxWidth() - .background(color = if (h.activeHost) MaterialTheme.colors.surface.mixWith(MaterialTheme.colors.onBackground, 0.95f) else Color.Unspecified) - .sizeIn(minHeight = DEFAULT_MIN_SECTION_ITEM_HEIGHT) - .combinedClickable( - onClick = onClick, - onLongClick = onLongClick - ) - .onRightClick { onLongClick() } - .padding(start = DEFAULT_PADDING_HALF, end = DEFAULT_PADDING), - horizontalArrangement = Arrangement.SpaceBetween, - verticalAlignment = Alignment.CenterVertically - ) { - RemoteHostRow(h) - if (h.sessionState is RemoteHostSessionState.Connected) { - HostDisconnectButton(actionButtonClick) - } else { - Box(Modifier.size(20.dp)) - } - } -} - @Composable fun RemoteHostRow(h: RemoteHostInfo) { Row(