IOS-1542 Get rid of the old account verification service. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Wed, 24 Apr 2019 12:43:18 +0200
branchIOS-1542
changeset 83653ee18a0d2630
parent 8364 0f5636c78961
child 8366 3e8adbb87f02
IOS-1542 Get rid of the old account verification service.
pEpForiOS/UI/Settings/Setting/AccountSettings/AccountSettingsTableViewController.swift
pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift
pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift
     1.1 --- a/pEpForiOS/UI/Settings/Setting/AccountSettings/AccountSettingsTableViewController.swift	Wed Apr 24 12:43:18 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Settings/Setting/AccountSettings/AccountSettingsTableViewController.swift	Wed Apr 24 12:43:18 2019 +0200
     1.3 @@ -54,7 +54,6 @@
     1.4          configureView()
     1.5          if let vm = viewModel {
     1.6              vm.delegate = self
     1.7 -            vm.verificationService = VerificationService()
     1.8          }
     1.9          passwordTextfield.delegate = self
    1.10      }
     2.1 --- a/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Wed Apr 24 12:43:18 2019 +0200
     2.2 +++ b/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Wed Apr 24 12:43:18 2019 +0200
     2.3 @@ -82,7 +82,6 @@
     2.4  
     2.5      private(set) var imapServer: ServerViewModel
     2.6  
     2.7 -    var verificationService: VerificationService?
     2.8      weak var delegate: AccountVerificationResultDelegate?
     2.9  
    2.10      /// Holding both the data of the current account in verification,
     3.1 --- a/pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift	Wed Apr 24 12:43:18 2019 +0200
     3.2 +++ b/pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift	Wed Apr 24 12:43:18 2019 +0200
     3.3 @@ -134,7 +134,6 @@
     3.4      private func setUpViewModel() {
     3.5          account.save()
     3.6          viewModel = AccountSettingsViewModel(account: account)
     3.7 -        viewModel.verificationService = VerificationService()
     3.8      }
     3.9  }
    3.10