From 2596bb1c512609c8d6e71b0c3fd9428717ee6db7 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Tue, 26 May 2020 14:46:08 -0500 Subject: [PATCH] [fenix] Remove onTabClosed from interactor --- .../java/org/mozilla/fenix/browser/BaseBrowserFragment.kt | 2 -- app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt | 4 ---- .../java/org/mozilla/fenix/tabtray/TabTrayDialogFragment.kt | 1 - 3 files changed, 7 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt index d567e81984..43850bdb53 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt @@ -221,8 +221,6 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session tabTrayDialog.dismiss() } - override fun onTabClosed(tab: Tab) { /* noop */ } - override fun onNewTabTapped(private: Boolean) { (activity as HomeActivity).browsingModeManager.mode = BrowsingMode.fromBoolean(private) tabTrayDialog.dismiss() diff --git a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt index de1e37c845..24bc20d17b 100644 --- a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt @@ -371,10 +371,6 @@ class HomeFragment : Fragment() { (activity as HomeActivity).browsingModeManager.mode = BrowsingMode.fromBoolean(private) tabTrayDialog.dismiss() } - - override fun onTabClosed(tab: mozilla.components.concept.tabstray.Tab) { - /* noop */ - } } } diff --git a/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayDialogFragment.kt b/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayDialogFragment.kt index 1911c57e5e..c6a649fdcc 100644 --- a/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayDialogFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayDialogFragment.kt @@ -25,7 +25,6 @@ class TabTrayDialogFragment : AppCompatDialogFragment(), TabTrayInteractor { interface Interactor { fun onTabSelected(tab: Tab) fun onNewTabTapped(private: Boolean) - fun onTabClosed(tab: Tab) } private lateinit var tabTrayView: TabTrayView