diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-19 16:23:29 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-19 18:35:53 +0530 |
commit | 35450bf407c0ec05d510f6148ecef0192d3b8003 (patch) | |
tree | 86575776fc7ca11b46a2cb749be105d7bb098306 /WireGuard/WireGuard | |
parent | Tunnel edit: Fix comment (diff) | |
download | wireguard-apple-35450bf407c0ec05d510f6148ecef0192d3b8003.tar.xz wireguard-apple-35450bf407c0ec05d510f6148ecef0192d3b8003.zip |
Remove non-helpful comments
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard')
4 files changed, 0 insertions, 5 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/SettingsTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/SettingsTableViewController.swift index b583c5b..65ad2fe 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/SettingsTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/SettingsTableViewController.swift @@ -127,7 +127,6 @@ class SettingsTableViewController: UITableViewController { DispatchQueue.main.async { let activityVC = UIActivityViewController(activityItems: [destinationURL], applicationActivities: nil) - // popoverPresentationController shall be non-nil on the iPad activityVC.popoverPresentationController?.sourceView = sourceView activityVC.popoverPresentationController?.sourceRect = sourceView.bounds activityVC.completionWithItemsHandler = { _, _, _, _ in diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift index cd6c7d8..6fb54fc 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift @@ -61,7 +61,6 @@ class TunnelDetailTableViewController: UITableViewController { tableView.register(KeyValueCell.self) tableView.register(ButtonCell.self) - // State restoration restorationIdentifier = "TunnelDetailVC:\(tunnel.name)" } @@ -91,7 +90,6 @@ class TunnelDetailTableViewController: UITableViewController { alert.addAction(destroyAction) alert.addAction(cancelAction) - // popoverPresentationController will be nil on iPhone and non-nil on iPad alert.popoverPresentationController?.sourceView = sourceView alert.popoverPresentationController?.sourceRect = sourceView.bounds diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift index e119303..f92f283 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift @@ -449,7 +449,6 @@ extension TunnelEditTableViewController { alert.addAction(destroyAction) alert.addAction(cancelAction) - // popoverPresentationController will be nil on iPhone and non-nil on iPad alert.popoverPresentationController?.sourceView = sourceView alert.popoverPresentationController?.sourceRect = sourceView.bounds diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift index 0596139..3225fe0 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift @@ -118,7 +118,6 @@ class TunnelsListTableViewController: UIViewController { let cancelAction = UIAlertAction(title: "Cancel", style: .cancel) alert.addAction(cancelAction) - // popoverPresentationController will be nil on iPhone and non-nil on iPad if let sender = sender as? UIBarButtonItem { alert.popoverPresentationController?.barButtonItem = sender } else if let sender = sender as? UIView { |