浏览代码

remove old code

Marino Faggiana 8 年之前
父节点
当前提交
f604bb526c
共有 4 个文件被更改,包括 0 次插入65 次删除
  1. 0 1
      iOSClient/AppDelegate.m
  2. 0 2
      iOSClient/Favorites/CCSynchronize.h
  3. 0 51
      iOSClient/Favorites/CCSynchronize.m
  4. 0 11
      iOSClient/Main/CCMain.m

+ 0 - 1
iOSClient/AppDelegate.m

@@ -396,7 +396,6 @@
 {
 // BACKGROND & FOREGROUND
     
-    [[CCSynchronize sharedSynchronize] synchronizeFolderAnimationDirectory:nil setGraphicsFolder:YES];
 
 // ONLY BACKGROUND
     

+ 0 - 2
iOSClient/Favorites/CCSynchronize.h

@@ -43,8 +43,6 @@
 
 - (void)verifyChangeMedatas:(NSArray *)allRecordMetadatas serverUrl:(NSString *)serverUrl account:(NSString *)account withDownload:(BOOL)withDownload;
 
-- (BOOL)synchronizeFolderAnimationDirectory:(NSArray *)directory setGraphicsFolder:(BOOL)setGraphicsFolder;
-
 - (void)readFolderServerUrl:(NSString *)serverUrl directoryID:(NSString *)directoryID selector:(NSString *)selector;
 
 @end

+ 0 - 51
iOSClient/Favorites/CCSynchronize.m

@@ -543,8 +543,6 @@
 
             [app addNetworkingOperationQueue:app.netQueueDownload delegate:app.activeMain metadataNet:metadataNet];
         }
-    
-        [[CCSynchronize sharedSynchronize] synchronizeFolderAnimationDirectory:[[NSArray alloc] initWithObjects:serverUrl, nil] setGraphicsFolder:YES];
         
         [app.activeMain reloadDatasource:serverUrl fileID:nil selector:nil];
         
@@ -552,53 +550,4 @@
     });
 }
 
-#pragma --------------------------------------------------------------------------------------------
-#pragma mark ===== Synchronize Folder Animation =====
-#pragma --------------------------------------------------------------------------------------------
-
-- (BOOL)synchronizeFolderAnimationDirectory:(NSArray *)directory setGraphicsFolder:(BOOL)setGraphicsFolder
-{
-    BOOL animation = NO;
-    BOOL isAtLeastOneInAnimation = NO;
-    NSMutableOrderedSet *serversUrlInDownload = [NSMutableOrderedSet new];
-    
-    // test
-    if ([directory count] == 0 && [self.foldersInSynchronized count] == 0)
-        return isAtLeastOneInAnimation;
-    
-    if (directory)
-        [self.foldersInSynchronized addObjectsFromArray:directory];
-    else
-        directory = [[NSArray alloc] initWithArray:self.foldersInSynchronized.array];
-    
-    // Active in download
-    NSMutableArray *metadatasNet = [app verifyExistsInQueuesDownloadSelector:selectorDownloadSynchronize];
-    
-    for (CCMetadataNet *metadataNet in metadatasNet)
-        [serversUrlInDownload addObject:metadataNet.serverUrl];
-    
-    // Animation ON/OFF
-    
-    for (NSString *serverUrl in directory) {
-        
-        animation = [serversUrlInDownload containsObject:serverUrl];
-        
-        if (animation)
-            isAtLeastOneInAnimation = YES;
-        else
-            [self.foldersInSynchronized removeObject:serverUrl];
-        
-        if (setGraphicsFolder) {
-            
-            NSString *serverUrlOffline = [CCUtility deletingLastPathComponentFromServerUrl:serverUrl];
-            CCMain *viewController = [app.listMainVC objectForKey:serverUrlOffline];
-            if (viewController)
-                [viewController synchronizeFolderGraphicsServerUrl:serverUrl animation:animation];
-        }
-    }
-    
-    return isAtLeastOneInAnimation;
-}
-
-
 @end

+ 0 - 11
iOSClient/Main/CCMain.m

@@ -5082,17 +5082,6 @@
             cell.offlineImageView.image = [UIImage imageNamed:image_favorite];
         }
         
-        // Animation synchronized gif
-        if ([[CCSynchronize sharedSynchronize] synchronizeFolderAnimationDirectory:[[NSArray alloc] initWithObjects:directoryServerUrl, nil] setGraphicsFolder:NO]) {
-            
-            NSURL *myURL;
-            
-            if (metadata.cryptated) myURL = [[NSBundle mainBundle] URLForResource: @"synchronizedcrypto" withExtension:@"gif"];
-            else myURL = [[NSBundle mainBundle] URLForResource: @"synchronized" withExtension:@"gif"];
-            
-            //cell.synchronizedImageView.image = [UIImage animatedImageWithAnimatedGIFURL:myURL];
-        }
-
     } else {
     
         // File