瀏覽代碼

clear old code

Marino Faggiana 7 年之前
父節點
當前提交
625c86df36
共有 1 個文件被更改,包括 3 次插入14 次删除
  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);
         }
     }