Browse Source

simplyfy dummy completion handler

B. Petersen 3 years ago
parent
commit
c8cc9c08b0
1 changed files with 1 additions and 4 deletions
  1. 1 4
      deltachat-ios/AppDelegate.swift

+ 1 - 4
deltachat-ios/AppDelegate.swift

@@ -145,7 +145,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             self.pushToDebugArray("📡'")
             self.pushToDebugArray("📡'")
             logger.info("Notifications: remoteNotification: \(String(describing: notificationOption))")
             logger.info("Notifications: remoteNotification: \(String(describing: notificationOption))")
             increaseDebugCounter("notify-remote-launch")
             increaseDebugCounter("notify-remote-launch")
-            performFetch(completionHandler: dummyCompletionHandler)
+            performFetch(completionHandler: { (_) -> Void in })
         }
         }
 
 
         if dcAccounts.getSelected().isConfigured() && !UserDefaults.standard.bool(forKey: "notifications_disabled") {
         if dcAccounts.getSelected().isConfigured() && !UserDefaults.standard.bool(forKey: "notifications_disabled") {
@@ -159,9 +159,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         return true
         return true
     }
     }
 
 
-    func dummyCompletionHandler(_ result: UIBackgroundFetchResult) {
-    }
-
     // `open` is called when an url should be opened by Delta Chat.
     // `open` is called when an url should be opened by Delta Chat.
     // we currently use that for handling oauth2 and for handing openpgp4fpr.
     // we currently use that for handling oauth2 and for handing openpgp4fpr.
     //
     //