Remove non-helpful comments

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-12-19 16:23:29 +05:30
parent f93c9797ea
commit 35450bf407
8 changed files with 0 additions and 13 deletions

View File

@ -10,7 +10,6 @@ struct DNSServer {
} }
// MARK: Converting to and from String // MARK: Converting to and from String
// For use in the UI
extension DNSServer { extension DNSServer {
init?(from addressString: String) { init?(from addressString: String) {
@ -28,7 +27,6 @@ extension DNSServer {
} }
// MARK: Codable // MARK: Codable
// For serializing to disk
@available(OSX 10.14, iOS 12.0, *) @available(OSX 10.14, iOS 12.0, *)
extension DNSServer: Codable { extension DNSServer: Codable {

View File

@ -11,7 +11,6 @@ struct Endpoint {
} }
// MARK: Converting to and from String // MARK: Converting to and from String
// For use in the UI
extension Endpoint { extension Endpoint {
init?(from string: String) { init?(from string: String) {
@ -55,7 +54,6 @@ extension Endpoint {
} }
// MARK: Codable // MARK: Codable
// For serializing to disk
@available(OSX 10.14, iOS 12.0, *) @available(OSX 10.14, iOS 12.0, *)
extension Endpoint: Codable { extension Endpoint: Codable {

View File

@ -11,7 +11,6 @@ struct IPAddressRange {
} }
// MARK: Converting to and from String // MARK: Converting to and from String
// For use in the UI
extension IPAddressRange { extension IPAddressRange {
init?(from string: String) { init?(from string: String) {
@ -45,7 +44,6 @@ extension IPAddressRange {
} }
// MARK: Codable // MARK: Codable
// For serializing to disk
@available(OSX 10.14, iOS 12.0, *) @available(OSX 10.14, iOS 12.0, *)
extension IPAddressRange: Codable { extension IPAddressRange: Codable {

View File

@ -127,7 +127,6 @@ class SettingsTableViewController: UITableViewController {
DispatchQueue.main.async { DispatchQueue.main.async {
let activityVC = UIActivityViewController(activityItems: [destinationURL], applicationActivities: nil) let activityVC = UIActivityViewController(activityItems: [destinationURL], applicationActivities: nil)
// popoverPresentationController shall be non-nil on the iPad
activityVC.popoverPresentationController?.sourceView = sourceView activityVC.popoverPresentationController?.sourceView = sourceView
activityVC.popoverPresentationController?.sourceRect = sourceView.bounds activityVC.popoverPresentationController?.sourceRect = sourceView.bounds
activityVC.completionWithItemsHandler = { _, _, _, _ in activityVC.completionWithItemsHandler = { _, _, _, _ in

View File

@ -61,7 +61,6 @@ class TunnelDetailTableViewController: UITableViewController {
tableView.register(KeyValueCell.self) tableView.register(KeyValueCell.self)
tableView.register(ButtonCell.self) tableView.register(ButtonCell.self)
// State restoration
restorationIdentifier = "TunnelDetailVC:\(tunnel.name)" restorationIdentifier = "TunnelDetailVC:\(tunnel.name)"
} }
@ -91,7 +90,6 @@ class TunnelDetailTableViewController: UITableViewController {
alert.addAction(destroyAction) alert.addAction(destroyAction)
alert.addAction(cancelAction) alert.addAction(cancelAction)
// popoverPresentationController will be nil on iPhone and non-nil on iPad
alert.popoverPresentationController?.sourceView = sourceView alert.popoverPresentationController?.sourceView = sourceView
alert.popoverPresentationController?.sourceRect = sourceView.bounds alert.popoverPresentationController?.sourceRect = sourceView.bounds

View File

@ -449,7 +449,6 @@ extension TunnelEditTableViewController {
alert.addAction(destroyAction) alert.addAction(destroyAction)
alert.addAction(cancelAction) alert.addAction(cancelAction)
// popoverPresentationController will be nil on iPhone and non-nil on iPad
alert.popoverPresentationController?.sourceView = sourceView alert.popoverPresentationController?.sourceView = sourceView
alert.popoverPresentationController?.sourceRect = sourceView.bounds alert.popoverPresentationController?.sourceRect = sourceView.bounds

View File

@ -118,7 +118,6 @@ class TunnelsListTableViewController: UIViewController {
let cancelAction = UIAlertAction(title: "Cancel", style: .cancel) let cancelAction = UIAlertAction(title: "Cancel", style: .cancel)
alert.addAction(cancelAction) alert.addAction(cancelAction)
// popoverPresentationController will be nil on iPhone and non-nil on iPad
if let sender = sender as? UIBarButtonItem { if let sender = sender as? UIBarButtonItem {
alert.popoverPresentationController?.barButtonItem = sender alert.popoverPresentationController?.barButtonItem = sender
} else if let sender = sender as? UIView { } else if let sender = sender as? UIView {

View File

@ -59,8 +59,6 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
let packetTunnelSettingsGenerator = PacketTunnelSettingsGenerator(tunnelConfiguration: tunnelConfiguration, resolvedEndpoints: resolvedEndpoints) 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 let fileDescriptor = packetFlow.value(forKeyPath: "socket.fileDescriptor") as! Int32 //swiftlint:disable:this force_cast
if fileDescriptor < 0 { if fileDescriptor < 0 {
wg_log(.error, staticMessage: "Starting tunnel failed: Could not determine file descriptor") wg_log(.error, staticMessage: "Starting tunnel failed: Could not determine file descriptor")