marinofaggiana 5 years ago
parent
commit
47e1ca03a0

+ 0 - 5
iOSClient/AppDelegate.m

@@ -414,11 +414,6 @@ PKPushRegistry *pushRegistry;
     [self startTimerServerUnauthorized];
 }
 
-- (void)loginDismiss
-{
-    [self startTimerServerUnauthorized];
-}
-
 - (void)startTimerServerUnauthorized
 {
     self.timerServerUnauthorized = [NSTimer scheduledTimerWithTimeInterval:k_timerServerUnauthorized target:self selector:@selector(checkPassword) userInfo:nil repeats:YES];

+ 0 - 1
iOSClient/Login/CCLogin.h

@@ -33,7 +33,6 @@
 @protocol CCLoginDelegate <NSObject>
 
 - (void)loginSuccess:(NSInteger)loginType;
-- (void)loginDismiss;
 
 @end
 

+ 3 - 1
iOSClient/Login/CCLogin.m

@@ -146,6 +146,9 @@
 - (void)viewDidDisappear:(BOOL)animated
 {
     [super viewDidDisappear:animated];
+    
+    // Start timer
+    [appDelegate startTimerServerUnauthorized];
 }
 
 - (BOOL)textFieldShouldReturn:(UITextField *)textField
@@ -401,7 +404,6 @@
 
 - (IBAction)handleAnnulla:(id)sender
 {
-    [self.delegate loginDismiss];
     [self dismissViewControllerAnimated:YES completion:nil];
 }
 

+ 0 - 5
iOSClient/Main/CCMain.m

@@ -921,11 +921,6 @@
     });    
 }
 
-- (void)loginDismiss
-{
-    //
-}
-
 #pragma mark -
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark ===== Peek & Pop  =====

+ 0 - 4
iOSClient/Main/CCMore.swift

@@ -476,10 +476,6 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource, CCLo
         
         appDelegate.selectedTabBarController(Int(k_tabBarApplicationIndexFile))        
     }
-    
-    func loginDismiss() {
-        //
-    }
 }
 
 extension CCMore: SwiftModalWebVCDelegate, SwiftWebVCDelegate{

+ 0 - 2
iOSClient/Main/CCSplit.m

@@ -181,8 +181,6 @@
 
 - (void)loginSuccess:(NSInteger)loginType
 {
-    [appDelegate startTimerServerUnauthorized];
-    
     [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"initializeMain" object:nil userInfo:nil];
 }
 

+ 0 - 5
iOSClient/Settings/CCManageAccount.m

@@ -367,11 +367,6 @@
     [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"initializeMain" object:nil userInfo:nil];
 }
 
-- (void)loginDismiss
-{
-    
-}
-
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark === Add Account ===
 #pragma --------------------------------------------------------------------------------------------