瀏覽代碼

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 年之前
父節點
當前提交
d081b72093
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      iOSClient/Data/NCDataSource.swift

+ 1 - 4
iOSClient/Data/NCDataSource.swift

@@ -77,6 +77,7 @@ class NCDataSource: NSObject {
 
     internal func createSections() {
 
+        // Get sections value
         for metadata in metadatasSource {
             // skipped livePhoto
             if filterLivePhoto && metadata.livePhoto && metadata.ext == "mov" {
@@ -88,10 +89,6 @@ class NCDataSource: NSObject {
             }
         }
 
-        // OLD
-        //self.sectionsValue = metadatasSource.map { getSectionValue(metadata: $0) }
-        //self.sectionsValue = Array(Set(self.sectionsValue))
-
         if let providers = self.providers , !providers.isEmpty {
             var sectionsDictionary: [String:Int] = [:]
             for section in self.sectionsValue {