瀏覽代碼

remove unused methods

cyberta 4 年之前
父節點
當前提交
b385a680db
共有 1 個文件被更改,包括 0 次插入14 次删除
  1. 0 14
      DcCore/DcCore/DC/Wrapper.swift

+ 0 - 14
DcCore/DcCore/DC/Wrapper.swift

@@ -316,20 +316,6 @@ public class DcContext {
         return "ErrGetContactEncrInfo"
     }
 
-    public func openDatabase(dbFile: String) {
-        var version = ""
-        if let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
-            version += " " + appVersion
-        }
-
-        contextPointer = dc_context_new("iOS" + version, dbFile, nil)
-    }
-
-    public func closeDatabase() {
-        dc_context_unref(contextPointer)
-        contextPointer = nil
-    }
-
     public func setStockTranslation(id: Int32, localizationKey: String) {
         dc_set_stock_translation(contextPointer, UInt32(id), String.localized(localizationKey))
     }