Remove unused intent manager (#1236)

This commit is contained in:
David Perez 2024-04-05 16:42:52 -05:00 committed by Álison Fernandes
parent 11a5ef5994
commit bfbb8d47a6
2 changed files with 0 additions and 8 deletions

View file

@ -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 ->

View file

@ -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,
)
}
}