]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
TunnelErrors: Remove unused error
authorRoopesh Chander <roop@roopc.net>
Thu, 20 Dec 2018 12:57:56 +0000 (18:27 +0530)
committerRoopesh Chander <roop@roopc.net>
Thu, 20 Dec 2018 14:14:57 +0000 (19:44 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/Tunnel/TunnelErrors.swift

index a45b4d4443fce0a033547dc0793d8ba31ca56ba9..16c8072d15e13e686a64a02eee31a95af12f4ad6 100644 (file)
@@ -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),