Issue #19002: Remove unused TrayItem interface

upstream-sync
Jonathan Almeida 3 years ago committed by Jonathan Almeida
parent e66983d093
commit 78af3d80b3

@ -1,13 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.fenix.tabstray
import android.view.View
import android.view.ViewGroup
/**
* A [View] or [ViewGroup] that can be add in the Tabs Tray.
*/
interface TrayItem

@ -12,14 +12,13 @@ import mozilla.components.feature.tabs.tabstray.TabsFeature
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.tabstray.TabsTrayInteractor
import org.mozilla.fenix.tabstray.TabsTrayStore
import org.mozilla.fenix.tabstray.TrayItem
import org.mozilla.fenix.tabstray.ext.filterFromConfig
abstract class BaseBrowserTrayList @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : RecyclerView(context, attrs, defStyleAttr), TrayItem {
) : RecyclerView(context, attrs, defStyleAttr) {
/**
* The browser tab types we would want to show.

@ -27,14 +27,13 @@ import org.mozilla.fenix.sync.ext.toStringRes
import org.mozilla.fenix.tabstray.TabsTrayAction
import org.mozilla.fenix.tabstray.TabsTrayFragment
import org.mozilla.fenix.tabstray.TabsTrayStore
import org.mozilla.fenix.tabstray.TrayItem
import org.mozilla.fenix.utils.view.LifecycleViewProvider
class SyncedTabsTrayLayout @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ConstraintLayout(context, attrs, defStyleAttr), SyncedTabsView, TrayItem,
) : ConstraintLayout(context, attrs, defStyleAttr), SyncedTabsView,
Observable<SyncedTabsView.Listener> by ObserverRegistry() {
private val lifecycleProvider = LifecycleViewProvider(this)

Loading…
Cancel
Save