Bladeren bron

clear old code

Marino Faggiana 7 jaren geleden
bovenliggende
commit
625c86df36
1 gewijzigde bestanden met toevoegingen van 3 en 14 verwijderingen
  1. 3 14
      iOSClient/AppDelegate.m

+ 3 - 14
iOSClient/AppDelegate.m

@@ -1624,25 +1624,14 @@
         [self maintenanceMode:NO];
     }
     
-    // VERSION == 2.17.4 BUILD < 23
-    
+    // VERSION == 2.17.4
+
     if ([actualVersion isEqualToString:@"2.17.4"]) {
         
-        // Build 23 - remove all directory Group and exit
+        // Build < 23
         if (([actualBuild compare:@"23" options:NSNumericSearch] == NSOrderedAscending) || actualBuild == nil) {
             
             [CCUtility setBuild];
-            
-            NSString *file;
-            NSURL *dirGroup = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:[NCBrandOptions sharedInstance].capabilitiesGroups];
-            NSString *dirIniziale = [[dirGroup URLByAppendingPathComponent:appApplicationSupport] path];
-            
-            NSDirectoryEnumerator *enumerator = [[NSFileManager defaultManager] enumeratorAtPath:dirIniziale];
-            
-            while (file = [enumerator nextObject])
-                [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@", dirIniziale, file] error:nil];
-            
-            exit(0);
         }
     }