瀏覽代碼

remove unused imexHasBackup method from DC wrapper

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

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

@@ -555,15 +555,6 @@ public class DcContext {
         dc_imex(contextPointer, what, directory, passphrase)
     }
 
-    public func imexHasBackup(filePath: String) -> String? {
-        var file: String?
-        if let cString = dc_imex_has_backup(contextPointer, filePath) {
-            file = String(cString: cString)
-            dc_str_unref(cString)
-        }
-        return file
-    }
-
     public func isSendingLocationsToChat(chatId: Int) -> Bool {
         return dc_is_sending_locations_to_chat(contextPointer, UInt32(chatId)) == 1
     }