소스 검색

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))
     }