aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-20 18:27:56 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-20 19:44:57 +0530
commitde08978a80ac842a4a6d72408f135f072e6f709e (patch)
treed9a8fba3231961d45bba4cc118459bd063651726 /WireGuard/WireGuard
parentTunnel edit: init() need not take a tunnelConfiguration argument (diff)
downloadwireguard-apple-de08978a80ac842a4a6d72408f135f072e6f709e.tar.xz
wireguard-apple-de08978a80ac842a4a6d72408f135f072e6f709e.zip
TunnelErrors: Remove unused error
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard')
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelErrors.swift3
1 files changed, 0 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelErrors.swift b/WireGuard/WireGuard/Tunnel/TunnelErrors.swift
index a45b4d4..16c8072 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelErrors.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelErrors.swift
@@ -31,7 +31,6 @@ enum TunnelsManagerError: WireGuardAppError {
enum TunnelsManagerActivationAttemptError: WireGuardAppError {
case tunnelIsNotInactive
- case anotherTunnelIsOperational(otherTunnelName: String)
case failedWhileStarting(systemError: Error) // startTunnel() throwed
case failedWhileSaving(systemError: Error) // save config after re-enabling throwed
case failedWhileLoading(systemError: Error) // reloading config throwed
@@ -41,8 +40,6 @@ enum TunnelsManagerActivationAttemptError: WireGuardAppError {
switch self {
case .tunnelIsNotInactive:
return ("Activation failure", "The tunnel is already active or in the process of being activated")
- case .anotherTunnelIsOperational(let otherTunnelName):
- return ("Activation failure", "Please disconnect '\(otherTunnelName)' before enabling this tunnel.")
case .failedWhileStarting(let systemError),
.failedWhileSaving(let systemError),
.failedWhileLoading(let systemError),