Browse Source

remove old code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
02b3a02396

+ 0 - 7
iOSClient/AppDelegate.swift

@@ -60,8 +60,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     var shares: [tableShare] = []
     var timerErrorNetworking: Timer?
 
-    var errorITMS90076: Bool = false
-
     private var privacyProtectionWindow: UIWindow?
 
     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
@@ -110,11 +108,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             }
         }
 
-        // ITMS-90076: Potential Loss of Keychain Access
-        if let account = NCManageDatabase.shared.getActiveAccount(), CCUtility.getPassword(account.account).isEmpty, NCUtility.shared.getVersionApp(withBuild: false).starts(with: "4.4") {
-            errorITMS90076 = true
-        }
-
         // Activate user account
         if let activeAccount = NCManageDatabase.shared.getActiveAccount() {
 

+ 1 - 10
iOSClient/Login/NCLoginWeb.swift

@@ -144,16 +144,7 @@ class NCLoginWeb: UIViewController {
         // Stop timer error network
         appDelegate.timerErrorNetworking?.invalidate()
 
-        // ITMS-90076: Potential Loss of Keychain Access
-        if appDelegate.errorITMS90076, !CCUtility.getPresentErrorITMS90076() {
-
-            let message = "\n" + NSLocalizedString("_ITMS-90076_", comment: "")
-            let alertController = UIAlertController(title: titleView, message: message, preferredStyle: .alert)
-            alertController.addAction(UIAlertAction(title: NSLocalizedString("_ok_", comment: ""), style: .default, handler: { _ in }))
-            present(alertController, animated: true, completion: {
-                CCUtility.setPresentErrorITMS90076(true)
-            })
-        } else if let account = NCManageDatabase.shared.getActiveAccount(), CCUtility.getPassword(account.account).isEmpty {
+        if let account = NCManageDatabase.shared.getActiveAccount(), CCUtility.getPassword(account.account).isEmpty {
 
             let message = "\n" + NSLocalizedString("_password_not_present_", comment: "")
             let alertController = UIAlertController(title: titleView, message: message, preferredStyle: .alert)

+ 0 - 3
iOSClient/Utility/CCUtility.h

@@ -180,9 +180,6 @@
 + (BOOL)getRemovePhotoCameraRoll;
 + (void)setRemovePhotoCameraRoll:(BOOL)set;
 
-+ (BOOL)getPresentErrorITMS90076;
-+ (void)setPresentErrorITMS90076:(BOOL)set;
-
 + (BOOL)getPlayerPlay;
 + (void)setPlayerPlay:(BOOL)set;
 

+ 0 - 11
iOSClient/Utility/CCUtility.m

@@ -723,17 +723,6 @@
     [UICKeyChainStore setString:sSet forKey:@"removePhotoCameraRoll" service:NCGlobal.shared.serviceShareKeyChain];
 }
 
-+ (BOOL)getPresentErrorITMS90076
-{
-    return [[UICKeyChainStore stringForKey:@"errorITMS90076" service:NCGlobal.shared.serviceShareKeyChain] boolValue];
-}
-
-+ (void)setPresentErrorITMS90076:(BOOL)set
-{
-    NSString *sSet = (set) ? @"true" : @"false";
-    [UICKeyChainStore setString:sSet forKey:@"errorITMS90076" service:NCGlobal.shared.serviceShareKeyChain];
-}
-
 + (BOOL)getPlayerPlay
 {
     return [[UICKeyChainStore stringForKey:@"playerPlay" service:NCGlobal.shared.serviceShareKeyChain] boolValue];