diff --git a/AnkiDroid/src/main/java/com/ichi2/libanki/sched/Scheduler.kt b/AnkiDroid/src/main/java/com/ichi2/libanki/sched/Scheduler.kt index 6b8bf20be01e..27c1a1ef8e30 100644 --- a/AnkiDroid/src/main/java/com/ichi2/libanki/sched/Scheduler.kt +++ b/AnkiDroid/src/main/java/com/ichi2/libanki/sched/Scheduler.kt @@ -16,7 +16,6 @@ package com.ichi2.libanki.sched -import android.app.Activity import androidx.annotation.CheckResult import androidx.annotation.VisibleForTesting import androidx.annotation.WorkerThread @@ -41,9 +40,6 @@ import anki.scheduler.SchedulingStates import anki.scheduler.UnburyDeckRequest import anki.scheduler.cardAnswer import anki.scheduler.scheduleCardsAsNewRequest -import com.google.android.material.snackbar.Snackbar -import com.ichi2.anki.R -import com.ichi2.anki.snackbar.showSnackbar import com.ichi2.anki.utils.SECONDS_PER_DAY import com.ichi2.libanki.Card import com.ichi2.libanki.CardId @@ -702,25 +698,6 @@ open class Scheduler(val col: Collection) { } } -/** - * Tell the user the current card has leeched and whether it was suspended. Timber if no activity. - * @param card A card that just became a leech - * @param activity An activity on which a message can be shown - */ -fun leech(card: Card, activity: Activity?) { - if (activity != null) { - val res = activity.resources - val leechMessage: String = if (card.queue < 0) { - res.getString(R.string.leech_suspend_notification) - } else { - res.getString(R.string.leech_notification) - } - activity.showSnackbar(leechMessage, Snackbar.LENGTH_SHORT) - } else { - Timber.w("LeechHook :: could not show leech snackbar as activity was null") - } -} - const val REPORT_LIMIT = 99999 private fun stateFromEase(states: SchedulingStates, ease: Int): SchedulingState {