]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Remove non-helpful comments
authorRoopesh Chander <roop@roopc.net>
Wed, 19 Dec 2018 10:53:29 +0000 (16:23 +0530)
committerRoopesh Chander <roop@roopc.net>
Wed, 19 Dec 2018 13:05:53 +0000 (18:35 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/Shared/Model/DNSServer.swift
WireGuard/Shared/Model/Endpoint.swift
WireGuard/Shared/Model/IPAddressRange.swift
WireGuard/WireGuard/UI/iOS/ViewController/SettingsTableViewController.swift
WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift
WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift
WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift

index bb20c025c01623500f65e2949df2399c4282b171..d1c75fc04a1f6929f89f3ed16cc88a850541bd11 100644 (file)
@@ -10,7 +10,6 @@ struct DNSServer {
 }
 
 // MARK: Converting to and from String
-// For use in the UI
 
 extension DNSServer {
     init?(from addressString: String) {
@@ -28,7 +27,6 @@ extension DNSServer {
 }
 
 // MARK: Codable
-// For serializing to disk
 
 @available(OSX 10.14, iOS 12.0, *)
 extension DNSServer: Codable {
index 41ea41fe58989129b4fbad8bd03c5687a00f89a5..3a4beee7551d6387b0627849ce7505ec57bf9268 100644 (file)
@@ -11,7 +11,6 @@ struct Endpoint {
 }
 
 // MARK: Converting to and from String
-// For use in the UI
 
 extension Endpoint {
     init?(from string: String) {
@@ -55,7 +54,6 @@ extension Endpoint {
 }
 
 // MARK: Codable
-// For serializing to disk
 
 @available(OSX 10.14, iOS 12.0, *)
 extension Endpoint: Codable {
index 468e3aa531c7a3ef9469e31941e7796816ee8a1a..0098c32c8d7fcad6058405cf0f32489f0aa034cc 100644 (file)
@@ -11,7 +11,6 @@ struct IPAddressRange {
 }
 
 // MARK: Converting to and from String
-// For use in the UI
 
 extension IPAddressRange {
     init?(from string: String) {
@@ -45,7 +44,6 @@ extension IPAddressRange {
 }
 
 // MARK: Codable
-// For serializing to disk
 
 @available(OSX 10.14, iOS 12.0, *)
 extension IPAddressRange: Codable {
index b583c5bf7c24d1c469ff4662ce8ff2f8fc05cc09..65ad2fe565c7e073396986ef1a8c701068cf3ad6 100644 (file)
@@ -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
index cd6c7d8a89fb03eebf6b9ddf51bbbc90f2a5ec9c..6fb54fce614eadc4dd353ff661200124ddec3d3b 100644 (file)
@@ -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
 
index e1193034c877c9aa918f5d42fa39016bc28c46fd..f92f28372cb5de9c458f269f692d8f93788e879b 100644 (file)
@@ -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
 
index 05961394085b12998c953fc3acdc67206b44e5ca..3225fe03377f2d4ed3223fba75bd994430a50d73 100644 (file)
@@ -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 {
index 9a3aede054d2d4149f470ee30b55b1dcff96740c..814ed59ed12c5e78ded892bfecccaf97caa1fe34 100644 (file)
@@ -59,8 +59,6 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
 
         let packetTunnelSettingsGenerator = PacketTunnelSettingsGenerator(tunnelConfiguration: tunnelConfiguration, resolvedEndpoints: resolvedEndpoints)
 
-        // Bring up wireguard-go backend
-
         let fileDescriptor = packetFlow.value(forKeyPath: "socket.fileDescriptor") as! Int32 //swiftlint:disable:this force_cast
         if fileDescriptor < 0 {
             wg_log(.error, staticMessage: "Starting tunnel failed: Could not determine file descriptor")