Marino Faggiana 7 жил өмнө
parent
commit
32956184c6

+ 0 - 6
iOSClient/Favorites/CCFavorites.m

@@ -498,7 +498,6 @@
 
 
 - (void)actionDelete:(NSIndexPath *)indexPath
 - (void)actionDelete:(NSIndexPath *)indexPath
 {
 {
-    
     tableMetadata *metadata = [[NCMainCommon sharedInstance] getMetadataFromSectionDataSourceIndexPath:indexPath sectionDataSource:sectionDataSource];
     tableMetadata *metadata = [[NCMainCommon sharedInstance] getMetadataFromSectionDataSourceIndexPath:indexPath sectionDataSource:sectionDataSource];
     tableLocalFile *localFile = [[NCManageDatabase sharedInstance] getTableLocalFileWithPredicate:[NSPredicate predicateWithFormat:@"fileID == %@", metadata.fileID]];
     tableLocalFile *localFile = [[NCManageDatabase sharedInstance] getTableLocalFileWithPredicate:[NSPredicate predicateWithFormat:@"fileID == %@", metadata.fileID]];
     UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
     UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
@@ -627,7 +626,6 @@
 
 
 - (void)reloadDatasource
 - (void)reloadDatasource
 {
 {
-    NSMutableArray *metadatas = [NSMutableArray new];
     NSArray *recordsTableMetadata ;
     NSArray *recordsTableMetadata ;
     
     
     NSString *sorted = [CCUtility getOrderSettings];
     NSString *sorted = [CCUtility getOrderSettings];
@@ -648,10 +646,6 @@
         
         
     sectionDataSource = [CCSectionMetadata creataDataSourseSectionMetadata:recordsTableMetadata listProgressMetadata:nil groupByField:nil fileIDHide:nil activeAccount:appDelegate.activeAccount];
     sectionDataSource = [CCSectionMetadata creataDataSourseSectionMetadata:recordsTableMetadata listProgressMetadata:nil groupByField:nil fileIDHide:nil activeAccount:appDelegate.activeAccount];
         
         
-    NSArray *fileIDs = [sectionDataSource.sectionArrayRow objectForKey:@"_none_"];
-    for (NSString *fileID in fileIDs)
-        [metadatas addObject:[sectionDataSource.allRecordsDataSource objectForKey:fileID]];
-    
     // get auto upload folder
     // get auto upload folder
     autoUploadFileName = [[NCManageDatabase sharedInstance] getAccountAutoUploadFileName];
     autoUploadFileName = [[NCManageDatabase sharedInstance] getAccountAutoUploadFileName];
     autoUploadDirectory = [[NCManageDatabase sharedInstance] getAccountAutoUploadDirectory:appDelegate.activeUrl];
     autoUploadDirectory = [[NCManageDatabase sharedInstance] getAccountAutoUploadDirectory:appDelegate.activeUrl];