diff options
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/wireguard/android/model/Tunnel.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/src/main/java/com/wireguard/android/model/Tunnel.java b/app/src/main/java/com/wireguard/android/model/Tunnel.java index 25bb46df..8152381b 100644 --- a/app/src/main/java/com/wireguard/android/model/Tunnel.java +++ b/app/src/main/java/com/wireguard/android/model/Tunnel.java @@ -12,8 +12,6 @@ import com.wireguard.android.util.ExceptionLoggers; import com.wireguard.android.util.Keyed; import com.wireguard.config.Config; -import org.threeten.bp.Instant; - import java.util.Objects; import java.util.regex.Pattern; @@ -33,7 +31,6 @@ public class Tunnel extends BaseObservable implements Keyed<String> { private final ConfigStore configStore; private final String name; private Config config; - private Instant lastStateChange = Instant.EPOCH; private State state = State.UNKNOWN; private Statistics statistics; @@ -68,11 +65,6 @@ public class Tunnel extends BaseObservable implements Keyed<String> { } @Bindable - public Instant getLastStateChange() { - return lastStateChange; - } - - @Bindable public String getName() { return name; } @@ -106,10 +98,6 @@ public class Tunnel extends BaseObservable implements Keyed<String> { } private void onStateChanged(final State oldState, final State newState) { - if (oldState != State.UNKNOWN) { - lastStateChange = Instant.now(); - notifyPropertyChanged(BR.lastStateChange); - } if (newState != State.UP) setStatisticsInternal(null); } |