Эх сурвалжийг харах

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 жил өмнө
parent
commit
d081b72093

+ 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 {