Browse Source

remove superfluous methods in AppDelegate

cyberta 4 years ago
parent
commit
13450974e8
1 changed files with 1 additions and 9 deletions
  1. 1 9
      deltachat-ios/AppDelegate.swift

+ 1 - 9
deltachat-ios/AppDelegate.swift

@@ -175,7 +175,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
 
     func applicationWillTerminate(_: UIApplication) {
         logger.info("⬅️ applicationWillTerminate")
-        closeDatabase()
+        dcAccounts.closeDatabase()
         reachability.stopNotifier()
     }
 
@@ -480,14 +480,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         }
     }
 
-    func openDatabase() {
-        dcAccounts.openDatabase()
-    }
-    
-    func closeDatabase() {
-        dcAccounts.closeDatabase()
-    }
-
     func deleteCurrentAccount() {
         _ = dcAccounts.remove(id: dcAccounts.getSelected().id)
     }