Browse Source

clear code

Marino Faggiana 7 years ago
parent
commit
54271f5de6
1 changed files with 2 additions and 5 deletions
  1. 2 5
      iOSClient/Photos/CCPhotos.m

+ 2 - 5
iOSClient/Photos/CCPhotos.m

@@ -608,11 +608,8 @@
         CCSectionDataSourceMetadata *tempSectionDataSource = [CCSectionMetadata creataDataSourseSectionMetadata:results listProgressMetadata:nil groupByField:@"date" activeAccount:appDelegate.activeAccount];
         
         dispatch_async(dispatch_get_main_queue(), ^{
-            // OPTIMIZED
-            //if (tempSectionDataSource.totalSize != _sectionDataSource.totalSize || tempSectionDataSource.files != _sectionDataSource.files) {
-                _sectionDataSource = [tempSectionDataSource copy];
-                [self reloadCollection];
-            //}
+            _sectionDataSource = [tempSectionDataSource copy];
+            [self reloadCollection];
         });
     });
 }