From 4ed93f9a5336ff8215709e2aa8c7d4ac6d3609ac Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Tue, 3 Dec 2024 13:03:54 +0100 Subject: [PATCH] refactor: Remove useless double jump lines --- .../swisstransfer/ui/components/SwissTransferButton.kt | 2 -- .../swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt | 1 - 2 files changed, 3 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferButton.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferButton.kt index dd9b7b6c1..c81b6320f 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferButton.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferButton.kt @@ -32,7 +32,6 @@ import com.infomaniak.swisstransfer.ui.theme.CustomShapes import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme import com.infomaniak.swisstransfer.ui.utils.PreviewLightAndDark - /** * Most basic and customizable button component. * @@ -127,7 +126,6 @@ enum class ButtonType(val buttonColors: @Composable () -> ButtonColors) { }), } - @PreviewLightAndDark @Composable private fun Preview() { diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt index 68b60e063..28efce791 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt @@ -245,7 +245,6 @@ class ImportFilesViewModel @Inject constructor( private val isPasswordValid by derivedStateOf { transferPassword.length in PASSWORD_MIN_LENGTH..PASSWORD_MAX_LENGTH } //endregion - //region Transfer Message private var _transferMessage by mutableStateOf("") val transferMessage = GetSetCallbacks(get = { _transferMessage }, set = { _transferMessage = it })