TunnelsManager: Remove unused variable

This commit is contained in:
Roopesh Chander 2018-12-13 23:44:13 +05:30
parent 738b2dba52
commit 57b95e1e01
1 changed files with 0 additions and 4 deletions

View File

@ -80,8 +80,6 @@ class TunnelsManager {
weak var activationDelegate: TunnelsManagerActivationDelegate? weak var activationDelegate: TunnelsManagerActivationDelegate?
private var statusObservationToken: AnyObject? private var statusObservationToken: AnyObject?
var tunnelBeingActivated: TunnelContainer?
init(tunnelProviders: [NETunnelProviderManager]) { init(tunnelProviders: [NETunnelProviderManager]) {
self.tunnels = tunnelProviders.map { TunnelContainer(tunnel: $0) }.sorted { $0.name < $1.name } self.tunnels = tunnelProviders.map { TunnelContainer(tunnel: $0) }.sorted { $0.name < $1.name }
self.startObservingTunnelStatuses() self.startObservingTunnelStatuses()
@ -271,7 +269,6 @@ class TunnelsManager {
return return
} }
tunnelBeingActivated = tunnel
tunnel.startActivation(activationDelegate: self.activationDelegate) tunnel.startActivation(activationDelegate: self.activationDelegate)
} }
@ -313,7 +310,6 @@ class TunnelsManager {
if (tunnel.status == .restarting) && (session.status == .disconnected || session.status == .disconnecting) { if (tunnel.status == .restarting) && (session.status == .disconnected || session.status == .disconnecting) {
// Don't change tunnel.status when disconnecting for a restart // Don't change tunnel.status when disconnecting for a restart
if session.status == .disconnected { if session.status == .disconnected {
self.tunnelBeingActivated = tunnel
tunnel.startActivation(activationDelegate: self.activationDelegate) tunnel.startActivation(activationDelegate: self.activationDelegate)
} }
return return