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