For #24747 - Remove unused store property in SessionControlAdapter and SessionControlView

pull/543/head
Gabriel Luong 2 years ago committed by mergify[bot]
parent cc893aa641
commit cf53a84278

@ -391,7 +391,6 @@ class HomeFragment : Fragment() {
updateLayout(binding.root)
sessionControlView = SessionControlView(
components.appStore,
binding.sessionControlRecyclerView,
viewLifecycleOwner,
sessionControlInteractor

@ -16,7 +16,6 @@ import androidx.recyclerview.widget.RecyclerView
import mozilla.components.feature.tab.collections.TabCollection
import mozilla.components.feature.top.sites.TopSite
import mozilla.components.ui.widgets.WidgetSiteItemView
import org.mozilla.fenix.components.AppStore
import org.mozilla.fenix.components.Components
import org.mozilla.fenix.gleanplumb.Message
import org.mozilla.fenix.home.BottomSpacerViewHolder
@ -204,7 +203,6 @@ class AdapterItemDiffCallback : DiffUtil.ItemCallback<AdapterItem>() {
@Suppress("LongParameterList")
class SessionControlAdapter(
private val store: AppStore,
private val interactor: SessionControlInteractor,
private val viewLifecycleOwner: LifecycleOwner,
private val components: Components

@ -13,7 +13,6 @@ import androidx.recyclerview.widget.RecyclerView
import mozilla.components.feature.tab.collections.TabCollection
import mozilla.components.feature.top.sites.TopSite
import mozilla.components.service.pocket.PocketRecommendedStory
import org.mozilla.fenix.components.AppStore
import org.mozilla.fenix.components.appstate.AppState
import org.mozilla.fenix.gleanplumb.Message
import org.mozilla.fenix.ext.components
@ -180,7 +179,6 @@ private fun collectionTabItems(collection: TabCollection) =
}
class SessionControlView(
store: AppStore,
val containerView: View,
viewLifecycleOwner: LifecycleOwner,
internal val interactor: SessionControlInteractor
@ -189,7 +187,6 @@ class SessionControlView(
val view: RecyclerView = containerView as RecyclerView
private val sessionControlAdapter = SessionControlAdapter(
store,
interactor,
viewLifecycleOwner,
containerView.context.components

@ -95,7 +95,6 @@ class SessionControlViewTest {
val interactor = mockk<SessionControlInteractor>(relaxed = true)
val view = RecyclerView(testContext)
val controller = SessionControlView(
mockk(relaxed = true),
view,
mockk(relaxed = true),
interactor
@ -117,7 +116,6 @@ class SessionControlViewTest {
val interactor = mockk<SessionControlInteractor>(relaxed = true)
val view = RecyclerView(testContext)
val controller = SessionControlView(
mockk(relaxed = true),
view,
mockk(relaxed = true),
interactor

Loading…
Cancel
Save