IOS-444 clean up
authorDirk Zimmermann <dirk@pep-project.org>
Tue, 14 Feb 2017 14:41:24 +0100
changeset 1694898bb5eaa391
parent 1693 c4db2ce1f89b
child 1695 ef7a38c36ac2
IOS-444 clean up
pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue Feb 14 12:43:54 2017 +0100
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue Feb 14 14:41:24 2017 +0100
     1.3 @@ -292,11 +292,6 @@
     1.4  
     1.5      }
     1.6  
     1.7 -    // MARK: - Actions
     1.8 -    //    @IBAction func unwindToEmailList(for unwindSegue: UIStoryboardSegue) {
     1.9 -    //
    1.10 -    //    }
    1.11 -
    1.12  }
    1.13  
    1.14  extension EmailListViewController: UISearchResultsUpdating, UISearchControllerDelegate {
    1.15 @@ -326,16 +321,6 @@
    1.16  
    1.17      override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    1.18          switch segueIdentifier(for: segue) {
    1.19 -        case .segueCompose:
    1.20 -            //let destination = segue.destination as! ComposeTableViewController
    1.21 -            // destination.appConfig = config.appConfig
    1.22 -            //            if let draft = draftMessageToCompose {
    1.23 -            //                draft.imapFlags?.seen = true
    1.24 -            //
    1.25 -            //                destination.originalMessage = draft
    1.26 -            //                destination.composeMode = .draft
    1.27 -            //            }
    1.28 -            break
    1.29          case .segueReplyAll:
    1.30              if let nav = segue.destination as? UINavigationController,
    1.31                  let destination = nav.topViewController as? ComposeTableViewController,
    1.32 @@ -367,7 +352,8 @@
    1.33                  destination.originalMessage = email
    1.34              }
    1.35              break
    1.36 -        default: ()
    1.37 +        case .segueAddNewAccount, .segueEditAccounts, .segueCompose, .noSegue:
    1.38 +            break
    1.39          }
    1.40      }
    1.41