IOS-1542 Remove original code. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Wed, 24 Apr 2019 12:43:18 +0200
branchIOS-1542
changeset 83625d523a83acd4
parent 8361 fa62d14b2f33
child 8363 15ce086afa27
IOS-1542 Remove original code.
pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift
     1.1 --- a/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Wed Apr 24 12:43:18 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Wed Apr 24 12:43:18 2019 +0200
     1.3 @@ -135,45 +135,6 @@
     1.4          } catch {
     1.5              delegate?.didVerify(result: .noImapConnectData, accountInput: theVerifier)
     1.6          }
     1.7 -
     1.8 -        // TODO: Implement
     1.9 -        /*
    1.10 -        guard let serverImap = account.imapServer,
    1.11 -            let serverSmtp = account.smtpServer else {
    1.12 -                Logger.frontendLogger.errorAndCrash("Account misses imap or smtp server.")
    1.13 -                return
    1.14 -        }
    1.15 -        let pass : String?
    1.16 -        if let p = password {
    1.17 -            pass = p
    1.18 -        } else {
    1.19 -            pass = serverImap.credentials.password
    1.20 -        }
    1.21 -        guard let editedServerImap = server(from: imap, serverType: .imap,
    1.22 -                                            loginName: loginName,
    1.23 -                                            password: pass,
    1.24 -                                            key: serverImap.credentials.key),
    1.25 -            let editedServerSmtp = server(from: smtp,
    1.26 -                                          serverType: .smtp,
    1.27 -                                          loginName: loginName,
    1.28 -                                          password: pass,
    1.29 -                                          key: serverSmtp.credentials.key)
    1.30 -            else {
    1.31 -                Logger.frontendLogger.errorAndCrash("Invalid input.")
    1.32 -                return
    1.33 -        }
    1.34 -
    1.35 -        serverImap.updateValues(with: editedServerImap)
    1.36 -        serverSmtp.updateValues(with: editedServerSmtp)
    1.37 -
    1.38 -        self.account.user.userName = name
    1.39 -
    1.40 -        guard let verificationService = verificationService else {
    1.41 -            Logger.frontendLogger.errorAndCrash("no VerificationService")
    1.42 -            return
    1.43 -        }
    1.44 -        verificationService.requestVerification(account: account, delegate: self)
    1.45 -         */
    1.46      }
    1.47  
    1.48      func sectionIsValid(section: Int) -> Bool {