IOS-1521 rm dead code IOS-1521+IOS-1495
authorbuff <andreas@pep-project.org>
Fri, 17 May 2019 11:04:30 +0200
branchIOS-1521+IOS-1495
changeset 8661fcc5cfa975aa
parent 8660 4ae7e8375c57
child 8662 9f7c8a994889
IOS-1521 rm dead code
pEpForiOSTests/TestUtils/TestDataBase.swift
     1.1 --- a/pEpForiOSTests/TestUtils/TestDataBase.swift	Fri May 17 11:04:01 2019 +0200
     1.2 +++ b/pEpForiOSTests/TestUtils/TestDataBase.swift	Fri May 17 11:04:30 2019 +0200
     1.3 @@ -286,16 +286,6 @@
     1.4      }
     1.5  
     1.6      /**
     1.7 -     - Returns: A valid `CdAccount`.
     1.8 -     */
     1.9 -    func createVerifiableCdAccount(number: Int = 0, context: NSManagedObjectContext) -> CdAccount {
    1.10 -        let result = createVerifiableAccountSettings(number: number).cdAccount(context: context)
    1.11 -        // The identity of an account is mySelf by definion.
    1.12 -        result.identity?.userID = CdIdentity.pEpOwnUserID
    1.13 -        return result
    1.14 -    }
    1.15 -
    1.16 -    /**
    1.17       - Returns: A valid `BasicConnectInfo` for IMAP.
    1.18       */
    1.19      func createVerifiableBasicConnectInfoIMAP(number: Int = 0) -> BasicConnectInfo {
    1.20 @@ -321,18 +311,6 @@
    1.21          return result
    1.22      }
    1.23  
    1.24 -    /**
    1.25 -     - Returns: A `CdAccount` that should not be able to be verified.
    1.26 -     */
    1.27 -    func createDisfunctionalCdAccount(context: NSManagedObjectContext) -> CdAccount {
    1.28 -        var accountSettings = createWorkingAccountSettings(number: 0)
    1.29 -        accountSettings.smtpServerAddress = "localhost"
    1.30 -        accountSettings.smtpServerPort = 2323
    1.31 -        accountSettings.imapServerPort = 2323
    1.32 -        accountSettings.imapServerAddress = "localhost"
    1.33 -        return accountSettings.cdAccount(context: context)
    1.34 -    }
    1.35 -
    1.36      func createWorkingAccountSettings(number: Int = 0) -> AccountSettings {
    1.37          populateAccounts()
    1.38          return testAccounts[number]