From bfbb8d47a6f8259c654e1c137eb5efdae0933878 Mon Sep 17 00:00:00 2001 From: David Perez Date: Fri, 5 Apr 2024 16:42:52 -0500 Subject: [PATCH] Remove unused intent manager (#1236) --- .../ui/platform/feature/settings/other/OtherScreen.kt | 3 --- .../ui/platform/feature/settings/other/OtherScreenTest.kt | 5 ----- 2 files changed, 8 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreen.kt b/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreen.kt index 5a84c196e..06f4ba2c6 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreen.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreen.kt @@ -44,8 +44,6 @@ import com.x8bit.bitwarden.ui.platform.components.dialog.row.BitwardenSelectionR import com.x8bit.bitwarden.ui.platform.components.row.BitwardenTextRow import com.x8bit.bitwarden.ui.platform.components.scaffold.BitwardenScaffold import com.x8bit.bitwarden.ui.platform.components.toggle.BitwardenWideSwitch -import com.x8bit.bitwarden.ui.platform.manager.intent.IntentManager -import com.x8bit.bitwarden.ui.platform.theme.LocalIntentManager /** * Displays the other screen. @@ -56,7 +54,6 @@ import com.x8bit.bitwarden.ui.platform.theme.LocalIntentManager fun OtherScreen( onNavigateBack: () -> Unit, viewModel: OtherViewModel = hiltViewModel(), - intentManager: IntentManager = LocalIntentManager.current, ) { val state by viewModel.stateFlow.collectAsState() EventsEffect(viewModel = viewModel) { event -> diff --git a/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreenTest.kt b/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreenTest.kt index 4c345dc0b..c708281eb 100644 --- a/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreenTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/other/OtherScreenTest.kt @@ -13,7 +13,6 @@ import com.x8bit.bitwarden.data.platform.repository.model.ClearClipboardFrequenc import com.x8bit.bitwarden.data.platform.repository.util.bufferedMutableSharedFlow import com.x8bit.bitwarden.ui.platform.base.BaseComposeTest import com.x8bit.bitwarden.ui.platform.base.util.asText -import com.x8bit.bitwarden.ui.platform.manager.intent.IntentManager import com.x8bit.bitwarden.ui.util.assertNoDialogExists import io.mockk.every import io.mockk.mockk @@ -33,9 +32,6 @@ class OtherScreenTest : BaseComposeTest() { every { eventFlow } returns mutableEventFlow every { stateFlow } returns mutableStateFlow } - private val intentManager: IntentManager = mockk { - every { getShareDataFromIntent(any()) } returns null - } @Before fun setup() { @@ -43,7 +39,6 @@ class OtherScreenTest : BaseComposeTest() { OtherScreen( viewModel = viewModel, onNavigateBack = { haveCalledNavigateBack = true }, - intentManager = intentManager, ) } }