TunnelErrors: Remove unused error

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-12-20 18:27:56 +05:30
parent 9268c0c4bc
commit de08978a80
1 changed files with 0 additions and 3 deletions

View File

@ -31,7 +31,6 @@ enum TunnelsManagerError: WireGuardAppError {
enum TunnelsManagerActivationAttemptError: WireGuardAppError { enum TunnelsManagerActivationAttemptError: WireGuardAppError {
case tunnelIsNotInactive case tunnelIsNotInactive
case anotherTunnelIsOperational(otherTunnelName: String)
case failedWhileStarting(systemError: Error) // startTunnel() throwed case failedWhileStarting(systemError: Error) // startTunnel() throwed
case failedWhileSaving(systemError: Error) // save config after re-enabling throwed case failedWhileSaving(systemError: Error) // save config after re-enabling throwed
case failedWhileLoading(systemError: Error) // reloading config throwed case failedWhileLoading(systemError: Error) // reloading config throwed
@ -41,8 +40,6 @@ enum TunnelsManagerActivationAttemptError: WireGuardAppError {
switch self { switch self {
case .tunnelIsNotInactive: case .tunnelIsNotInactive:
return ("Activation failure", "The tunnel is already active or in the process of being activated") 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), case .failedWhileStarting(let systemError),
.failedWhileSaving(let systemError), .failedWhileSaving(let systemError),
.failedWhileLoading(let systemError), .failedWhileLoading(let systemError),