From 6c691460d9d0bb88c9170c8d2a959e45f9bba781 Mon Sep 17 00:00:00 2001 From: Mugurell Date: Mon, 23 May 2022 20:37:36 +0300 Subject: [PATCH] For #12184 - Delete unused getDeleteProfileUseCase from PocketStoriesService This was a leftover from when migrating to use a GlobalDependencyProvider. --- .../components/service/pocket/PocketStoriesService.kt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/components/service/pocket/src/main/java/mozilla/components/service/pocket/PocketStoriesService.kt b/components/service/pocket/src/main/java/mozilla/components/service/pocket/PocketStoriesService.kt index 292b05d92bd..5dccbf04965 100644 --- a/components/service/pocket/src/main/java/mozilla/components/service/pocket/PocketStoriesService.kt +++ b/components/service/pocket/src/main/java/mozilla/components/service/pocket/PocketStoriesService.kt @@ -45,17 +45,6 @@ class PocketStoriesService( appId = pocketStoriesConfig.profile.appId ) } - internal val getDeleteProfileUseCase = when (pocketStoriesConfig.profile) { - null -> { - logger.debug("Missing profile for sponsored stories") - null - } - else -> spocsUseCases?.DeleteProfile( - context = context, - profileId = pocketStoriesConfig.profile.profileId, - appId = pocketStoriesConfig.profile.appId - ) - } /** * Entry point to start fetching Pocket stories in the background.