mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] Remove unused SessionManager reference from RecentlyClosedController
This commit is contained in:
parent
e76960b389
commit
f2dd0f0a18
@ -9,7 +9,6 @@ import android.content.ClipboardManager
|
||||
import android.content.res.Resources
|
||||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavOptions
|
||||
import mozilla.components.browser.session.SessionManager
|
||||
import mozilla.components.browser.state.action.RecentlyClosedAction
|
||||
import mozilla.components.browser.state.state.recover.RecoverableTab
|
||||
import mozilla.components.browser.state.store.BrowserStore
|
||||
@ -33,7 +32,6 @@ interface RecentlyClosedController {
|
||||
class DefaultRecentlyClosedController(
|
||||
private val navController: NavController,
|
||||
private val store: BrowserStore,
|
||||
private val sessionManager: SessionManager,
|
||||
private val tabsUseCases: TabsUseCases,
|
||||
private val resources: Resources,
|
||||
private val snackbar: FenixSnackbar,
|
||||
|
@ -83,7 +83,6 @@ class RecentlyClosedFragment : LibraryPageFragment<RecoverableTab>() {
|
||||
store = requireComponents.core.store,
|
||||
activity = activity as HomeActivity,
|
||||
tabsUseCases = requireComponents.useCases.tabsUseCases,
|
||||
sessionManager = requireComponents.core.sessionManager,
|
||||
resources = requireContext().resources,
|
||||
snackbar = FenixSnackbar.make(
|
||||
view = requireActivity().getRootView()!!,
|
||||
|
@ -17,7 +17,6 @@ import io.mockk.slot
|
||||
import io.mockk.verify
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.test.TestCoroutineDispatcher
|
||||
import mozilla.components.browser.session.SessionManager
|
||||
import mozilla.components.browser.state.action.RecentlyClosedAction
|
||||
import mozilla.components.browser.state.state.recover.RecoverableTab
|
||||
import mozilla.components.browser.state.store.BrowserStore
|
||||
@ -46,7 +45,6 @@ class DefaultRecentlyClosedControllerTest {
|
||||
private val snackbar: FenixSnackbar = mockk(relaxed = true)
|
||||
private val clipboardManager: ClipboardManager = mockk(relaxed = true)
|
||||
private val openToBrowser: (RecoverableTab, BrowsingMode?) -> Unit = mockk(relaxed = true)
|
||||
private val sessionManager: SessionManager = mockk(relaxed = true)
|
||||
private val activity: HomeActivity = mockk(relaxed = true)
|
||||
private val store: BrowserStore = mockk(relaxed = true)
|
||||
private val tabsUseCases: TabsUseCases = mockk(relaxed = true)
|
||||
@ -55,7 +53,6 @@ class DefaultRecentlyClosedControllerTest {
|
||||
private val controller = DefaultRecentlyClosedController(
|
||||
navController,
|
||||
store,
|
||||
sessionManager,
|
||||
tabsUseCases,
|
||||
resources,
|
||||
snackbar,
|
||||
|
Loading…
Reference in New Issue
Block a user