ソースを参照

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() {
     internal func createSections() {
 
 
+        // Get sections value
         for metadata in metadatasSource {
         for metadata in metadatasSource {
             // skipped livePhoto
             // skipped livePhoto
             if filterLivePhoto && metadata.livePhoto && metadata.ext == "mov" {
             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 {
         if let providers = self.providers , !providers.isEmpty {
             var sectionsDictionary: [String:Int] = [:]
             var sectionsDictionary: [String:Int] = [:]
             for section in self.sectionsValue {
             for section in self.sectionsValue {