From c827a0030749944269afa7c65d91ecdcf9ab8080 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Thu, 6 Dec 2018 19:22:48 +0530 Subject: Error handling: Use ErrorPresenter.showErrorAlert() instead of per-VC showErrorAlert() methods Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift | 8 -------- 1 file changed, 8 deletions(-) (limited to 'WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift') 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 -- cgit v1.2.3-59-g8ed1b