Skip to content

Commit

Permalink
Remove redundant SubscribersDetailListViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
irfano committed May 1, 2024
1 parent 2ce6078 commit 7329299
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import org.wordpress.android.ui.stats.refresh.lists.InsightsDetailListViewModel;
import org.wordpress.android.ui.stats.refresh.lists.InsightsListViewModel;
import org.wordpress.android.ui.stats.refresh.lists.MonthsListViewModel;
import org.wordpress.android.ui.stats.refresh.lists.SubscribersDetailListViewModel;
import org.wordpress.android.ui.stats.refresh.lists.SubscribersListViewModel;
import org.wordpress.android.ui.stats.refresh.lists.TotalCommentsDetailListViewModel;
import org.wordpress.android.ui.stats.refresh.lists.TotalFollowersDetailListViewModel;
Expand Down Expand Up @@ -199,11 +198,6 @@ abstract class ViewModelModule {
@ViewModelKey(InsightsDetailListViewModel.class)
abstract ViewModel insightsDetailListViewModel(InsightsDetailListViewModel viewModel);

@Binds
@IntoMap
@ViewModelKey(SubscribersDetailListViewModel.class)
abstract ViewModel subscribersDetailListViewModel(SubscribersDetailListViewModel viewModel);

@Binds
@IntoMap
@ViewModelKey(DetailListViewModel.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,19 +336,6 @@ class InsightsDetailListViewModel @Inject constructor(
dateSelectorFactory.build(StatsGranularity.WEEKS)
)

// Using Weeks granularity on Subscribers detail screens
class SubscribersDetailListViewModel @Inject constructor(
@Named(UI_THREAD) mainDispatcher: CoroutineDispatcher,
@Named(SUBSCRIBERS_USE_CASE) statsUseCase: BaseListUseCase,
analyticsTracker: AnalyticsTrackerWrapper,
dateSelectorFactory: StatsDateSelector.Factory
) : StatsListViewModel(
mainDispatcher,
statsUseCase,
analyticsTracker,
dateSelectorFactory.build(StatsGranularity.WEEKS)
)

class TotalLikesDetailListViewModel @Inject constructor(
@Named(UI_THREAD) mainDispatcher: CoroutineDispatcher,
@Named(TOTAL_LIKES_DETAIL_USE_CASE) statsUseCase: BaseListUseCase,
Expand Down

0 comments on commit 7329299

Please sign in to comment.