Tunnel: Remove UNKNOWN state

It's never used.

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland
2018-01-07 20:33:07 -06:00
parent 11f851abf8
commit 0ab3e29432
4 changed files with 1 additions and 10 deletions
@@ -69,15 +69,11 @@ public class Tunnel extends BaseObservable implements Keyed<String> {
@Bindable
public State getState() {
if (state == State.UNKNOWN)
manager.getTunnelState(this).whenComplete(ExceptionLoggers.E);
return state;
}
public CompletionStage<State> getStateAsync() {
if (state == State.UNKNOWN)
return manager.getTunnelState(this);
return CompletableFuture.completedFuture(state);
return manager.getTunnelState(this);
}
@Bindable
@@ -133,7 +129,6 @@ public class Tunnel extends BaseObservable implements Keyed<String> {
public enum State {
DOWN,
TOGGLE,
UNKNOWN,
UP
}