aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-13 23:44:13 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-13 23:44:13 +0530
commitf67e1d8fc4c9d6aeabc563f1574bd47733468377 (patch)
tree3db1dea51f36a0715da5ecc4798038444bc5a1c9
parentTunnelsManager: Remove assert (diff)
downloadwireguard-apple-f67e1d8fc4c9d6aeabc563f1574bd47733468377.tar.xz
wireguard-apple-f67e1d8fc4c9d6aeabc563f1574bd47733468377.zip
TunnelsManager: Remove unused variable
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift4
1 files changed, 0 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index 2a4b3da8..93271de9 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -80,8 +80,6 @@ class TunnelsManager {
weak var activationDelegate: TunnelsManagerActivationDelegate?
private var statusObservationToken: AnyObject?
- var tunnelBeingActivated: TunnelContainer?
-
init(tunnelProviders: [NETunnelProviderManager]) {
self.tunnels = tunnelProviders.map { TunnelContainer(tunnel: $0) }.sorted { $0.name < $1.name }
self.startObservingTunnelStatuses()
@@ -271,7 +269,6 @@ class TunnelsManager {
return
}
- tunnelBeingActivated = tunnel
tunnel.startActivation(activationDelegate: self.activationDelegate)
}
@@ -313,7 +310,6 @@ class TunnelsManager {
if (tunnel.status == .restarting) && (session.status == .disconnected || session.status == .disconnecting) {
// Don't change tunnel.status when disconnecting for a restart
if session.status == .disconnected {
- self.tunnelBeingActivated = tunnel
tunnel.startActivation(activationDelegate: self.activationDelegate)
}
return