Browse Source

clear code

marinofaggiana 4 years ago
parent
commit
c6c2d2a464
1 changed files with 1 additions and 17 deletions
  1. 1 17
      iOSClient/AppDelegate.m

+ 1 - 17
iOSClient/AppDelegate.m

@@ -178,8 +178,6 @@
             self.activeFileViewInFolder = nil;
         }];
     }
-    
-    [self updateApplicationIconBadgeNumber];
 }
 
 //
@@ -674,18 +672,6 @@
     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 mark ===== Fetch =====
 #pragma --------------------------------------------------------------------------------------------
@@ -719,9 +705,7 @@
 - (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler
 {
     [[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(), ^{
         self.backgroundSessionCompletionHandler = completionHandler;
         void (^completionHandler)() = self.backgroundSessionCompletionHandler;