diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index df509a6..7974549 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -147,7 +147,6 @@ class TunnelsListTableViewController: UIViewController { func presentViewControllerForTunnelCreation(tunnelsManager: TunnelsManager, tunnelConfiguration: TunnelConfiguration?) { let editVC = TunnelEditTableViewController(tunnelsManager: tunnelsManager, tunnelConfiguration: tunnelConfiguration) - editVC.delegate = self let editNC = UINavigationController(rootViewController: editVC) editNC.modalPresentationStyle = .formSheet self.present(editNC, animated: true) @@ -245,21 +244,6 @@ class TunnelsListTableViewController: UIViewController { } } -// MARK: TunnelEditTableViewControllerDelegate - -extension TunnelsListTableViewController: TunnelEditTableViewControllerDelegate { - func tunnelSaved(tunnel: TunnelContainer) { - guard let tunnelsManager = tunnelsManager else { return } - let tunnelDetailVC = TunnelDetailTableViewController(tunnelsManager: tunnelsManager, - tunnel: tunnel) - let tunnelDetailNC = UINavigationController(rootViewController: tunnelDetailVC) - showDetailViewController(tunnelDetailNC, sender: self) // Shall get propagated up to the split-vc - } - func tunnelEditingCancelled() { - // Nothing to do here - } -} - // MARK: UIDocumentPickerDelegate extension TunnelsListTableViewController: UIDocumentPickerDelegate {