From f67e1d8fc4c9d6aeabc563f1574bd47733468377 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Thu, 13 Dec 2018 23:44:13 +0530 Subject: [PATCH] TunnelsManager: Remove unused variable Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/Tunnel/TunnelsManager.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift index 2a4b3da..93271de 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