diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-06 19:22:48 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-07 12:36:19 +0530 |
commit | c827a0030749944269afa7c65d91ecdcf9ab8080 (patch) | |
tree | 5184e26092022583e604943cd0f4cbf76a4475f9 /WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift | |
parent | Error handling: Use WireGuardAppError and WireGuardResult throughout the app (diff) | |
download | wireguard-apple-c827a0030749944269afa7c65d91ecdcf9ab8080.tar.xz wireguard-apple-c827a0030749944269afa7c65d91ecdcf9ab8080.zip |
Error handling: Use ErrorPresenter.showErrorAlert() instead of per-VC showErrorAlert() methods
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift index ca5e6a8..c110d73 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift @@ -116,14 +116,6 @@ class TunnelEditTableViewController: UITableViewController { dismiss(animated: true, completion: nil) self.delegate?.tunnelEditingCancelled() } - - func showErrorAlert(title: String, message: String) { - let okAction = UIAlertAction(title: "OK", style: .default) - let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) - alert.addAction(okAction) - - self.present(alert, animated: true, completion: nil) - } } // MARK: UITableViewDataSource |