From c630bf3b9f687d71473ef0305f6150d05a91b4cb Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 15 Jul 2020 10:26:03 +0800 Subject: [PATCH] Account restrictions removed. --- .../Add Account/AddAccountModel.swift | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/Multiplatform/macOS/Preferences/Preference Panes/Accounts/Account Preferences/Add Account/AddAccountModel.swift b/Multiplatform/macOS/Preferences/Preference Panes/Accounts/Account Preferences/Add Account/AddAccountModel.swift index 78a836122..304fbb5f1 100644 --- a/Multiplatform/macOS/Preferences/Preference Panes/Accounts/Account Preferences/Add Account/AddAccountModel.swift +++ b/Multiplatform/macOS/Preferences/Preference Panes/Accounts/Account Preferences/Add Account/AddAccountModel.swift @@ -38,11 +38,7 @@ class AddAccountModel: ObservableObject { } @Published var showError: Bool = false @Published var accountAdded: Bool = false - - init() { - restrictAccounts() - } - + func resetUserEntries() { userName = "" password = "" @@ -69,25 +65,6 @@ class AddAccountModel: ObservableObject { } } - func restrictAccounts() { - func removeAccountType(_ accountType: AccountType) { - if let index = addableAccountTypes.firstIndex(of: accountType) { - addableAccountTypes.remove(at: index) - } - } - - if AppDefaults.shared.isDeveloperBuild { - removeAccountType(.cloudKit) - removeAccountType(.feedly) - removeAccountType(.feedWrangler) - return - } - - if AccountManager.shared.activeAccounts.firstIndex(where: { $0.type == .cloudKit }) != nil { - removeAccountType(.cloudKit) - } - } - } // MARK:- Authentication APIs