TunnelsManager: Remove unused variable

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-12-13 23:44:13 +05:30
parent 33af8845b6
commit f67e1d8fc4
1 changed files with 0 additions and 4 deletions

View File

@ -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