Skip to content

Commit 086d1b5

Browse files
committed
Update GCMRegistrationScheduler.kt
- mark workManager private - remove unused cancelScheduleRegistration
1 parent 7ec70d7 commit 086d1b5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

WordPress/src/main/java/org/wordpress/android/push/GCMRegistrationScheduler.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import javax.inject.Inject
1010
class GCMRegistrationScheduler @Inject constructor(
1111
val contextProvider: ContextProvider
1212
) {
13-
val workManager by lazy { WorkManager.getInstance(contextProvider.getContext()) }
13+
private val workManager by lazy { WorkManager.getInstance(contextProvider.getContext()) }
1414

1515
fun scheduleRegistration() {
1616
workManager.enqueueUniqueWork(
@@ -20,10 +20,6 @@ class GCMRegistrationScheduler @Inject constructor(
2020
)
2121
}
2222

23-
fun cancelScheduledRegistration() {
24-
workManager.cancelAllWorkByTag(UNIQUE_WORK_NAME)
25-
}
26-
2723
private fun buildOneTimeWorkRequest() =
2824
OneTimeWorkRequestBuilder<GCMRegistrationWorker>()
2925
.addTag(UNIQUE_WORK_NAME)

0 commit comments

Comments
 (0)