浏览代码

clear code

marinofaggiana 4 年之前
父节点
当前提交
c6c2d2a464
共有 1 个文件被更改,包括 1 次插入17 次删除
  1. 1 17
      iOSClient/AppDelegate.m

+ 1 - 17
iOSClient/AppDelegate.m

@@ -178,8 +178,6 @@
             self.activeFileViewInFolder = nil;
             self.activeFileViewInFolder = nil;
         }];
         }];
     }
     }
-    
-    [self updateApplicationIconBadgeNumber];
 }
 }
 
 
 //
 //
@@ -674,18 +672,6 @@
     return [token copy];
     return [token copy];
 }
 }
 
 
-#pragma --------------------------------------------------------------------------------------------
-#pragma mark ===== ApplicationIconBadgeNumber =====
-#pragma --------------------------------------------------------------------------------------------
-
-- (void)updateApplicationIconBadgeNumber
-{
-    UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
-    if ([tabBarController isKindOfClass:[UITabBarController class]]) {
-        [(NCMainTabBar *)tabBarController.tabBar updateBadgeNumber];
-    }
-}
-
 #pragma --------------------------------------------------------------------------------------------
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark ===== Fetch =====
 #pragma mark ===== Fetch =====
 #pragma --------------------------------------------------------------------------------------------
 #pragma --------------------------------------------------------------------------------------------
@@ -719,9 +705,7 @@
 - (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler
 - (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler
 {
 {
     [[NCCommunicationCommon shared] writeLog:[NSString stringWithFormat:@"Start handle Events For Background URLSession: %@", identifier]];
     [[NCCommunicationCommon shared] writeLog:[NSString stringWithFormat:@"Start handle Events For Background URLSession: %@", identifier]];
-    
-    [self updateApplicationIconBadgeNumber];
-    
+        
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 20 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 20 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
         self.backgroundSessionCompletionHandler = completionHandler;
         self.backgroundSessionCompletionHandler = completionHandler;
         void (^completionHandler)() = self.backgroundSessionCompletionHandler;
         void (^completionHandler)() = self.backgroundSessionCompletionHandler;