Browse Source

Remove unused seletor `selectorLoadCopy`

Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
Henrik Storch 3 years ago
parent
commit
82b30f3b20
2 changed files with 1 additions and 5 deletions
  1. 1 4
      iOSClient/Main/NCFunctionCenter.swift
  2. 0 1
      iOSClient/NCGlobal.swift

+ 1 - 4
iOSClient/Main/NCFunctionCenter.swift

@@ -96,9 +96,6 @@ import JGProgressHUD
                             self.openDocumentController(metadata: metadata)
                         }
 
-                    case NCGlobal.shared.selectorLoadCopy: break
-//                        copyDispatchGroup?.leave()
-
                     case NCGlobal.shared.selectorLoadOffline:
 
                         NCManageDatabase.shared.setLocalFile(ocId: metadata.ocId, offline: true)
@@ -450,7 +447,7 @@ import JGProgressHUD
             for metadata in downloadMetadatas {
                 guard !isCancelled else { return }
                 copyDispatchGroup.enter()
-                NCNetworking.shared.download(metadata: metadata, selector: NCGlobal.shared.selectorLoadCopy) { _ in
+                NCNetworking.shared.download(metadata: metadata, selector: "") { _ in
                     copyDispatchGroup.leave()
                     seamphore.signal()
                 }

+ 0 - 1
iOSClient/NCGlobal.swift

@@ -272,7 +272,6 @@ class NCGlobal: NSObject {
     let selectorListingFavorite                     = "listingFavorite"
     let selectorLoadFileView                        = "loadFileView"
     let selectorLoadFileQuickLook                   = "loadFileQuickLook"
-    let selectorLoadCopy                            = "loadCopy"
     let selectorLoadOffline                         = "loadOffline"
     let selectorOpenIn                              = "openIn"
     let selectorPrint                               = "print"