Bladeren bron

remove superfluous methods in AppDelegate

cyberta 4 jaren geleden
bovenliggende
commit
13450974e8
1 gewijzigde bestanden met toevoegingen van 1 en 9 verwijderingen
  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) {
     func applicationWillTerminate(_: UIApplication) {
         logger.info("⬅️ applicationWillTerminate")
         logger.info("⬅️ applicationWillTerminate")
-        closeDatabase()
+        dcAccounts.closeDatabase()
         reachability.stopNotifier()
         reachability.stopNotifier()
     }
     }
 
 
@@ -480,14 +480,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         }
         }
     }
     }
 
 
-    func openDatabase() {
-        dcAccounts.openDatabase()
-    }
-    
-    func closeDatabase() {
-        dcAccounts.closeDatabase()
-    }
-
     func deleteCurrentAccount() {
     func deleteCurrentAccount() {
         _ = dcAccounts.remove(id: dcAccounts.getSelected().id)
         _ = dcAccounts.remove(id: dcAccounts.getSelected().id)
     }
     }