Skip to content

Commit dafbfda

Browse files
authored
Clear pending "loop not looping" notification requests (#88)
* Clear pending "loop not looping" notification requests * PR Feedback
1 parent 81a40d2 commit dafbfda

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Loop/Managers/NotificationManager.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ struct NotificationManager {
127127
UNUserNotificationCenter.current().add(request)
128128
}
129129

130-
// Cancel any previous scheduled notifications in the Loop Not Running category
131-
static func clearPendingNotificationRequests() {
132-
UNUserNotificationCenter.current().removeAllPendingNotificationRequests()
133-
}
134-
135130
static func scheduleLoopNotRunningNotifications() {
136131
// Give a little extra time for a loop-in-progress to complete
137132
let gracePeriod = TimeInterval(minutes: 0.5)

0 commit comments

Comments
 (0)