dead code
This commit is contained in:
parent
a9c91a4079
commit
06284c55a6
|
@ -10,7 +10,6 @@ public interface Timeouts {
|
|||
int READ_IMAGE_TIMEOUT = 60 * SECOND;
|
||||
|
||||
int CONNECTION_RESTART_DELAY = 20 * SECOND;
|
||||
int CONNECTION_STATUS_TIMEOUT = 3 * SECOND;
|
||||
|
||||
int CMD_TIMEOUT = 20 * SECOND;
|
||||
int SET_ENGINE_TIMEOUT = 60 * SECOND;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.rusefi.io;
|
||||
|
||||
import com.rusefi.Timeouts;
|
||||
import com.rusefi.config.generated.Fields;
|
||||
import com.rusefi.core.EngineTimeListener;
|
||||
import com.rusefi.core.MessagesCentral;
|
||||
|
@ -8,9 +7,6 @@ import com.rusefi.core.Sensor;
|
|||
import com.rusefi.core.SensorCentral;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
|
@ -38,13 +34,6 @@ public class ConnectionStatusLogic {
|
|||
public static ConnectionStatusLogic INSTANCE = new ConnectionStatusLogic();
|
||||
private List<Listener> listeners = new CopyOnWriteArrayList<>();
|
||||
|
||||
private final Timer timer = new Timer(Timeouts.CONNECTION_STATUS_TIMEOUT, new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
// setValue(Value.NOT_CONNECTED);
|
||||
}
|
||||
});
|
||||
|
||||
private ConnectionStatusLogic() {
|
||||
|
||||
LinkManager.engineState.timeListeners.add(new EngineTimeListener() {
|
||||
|
@ -73,10 +62,6 @@ public class ConnectionStatusLogic {
|
|||
public void markConnected() {
|
||||
if (value == ConnectionStatusValue.NOT_CONNECTED)
|
||||
setValue(ConnectionStatusValue.LOADING);
|
||||
/**
|
||||
* this timer will catch engine inactivity and display a warning
|
||||
*/
|
||||
timer.restart();
|
||||
}
|
||||
|
||||
public void setValue(@NotNull ConnectionStatusValue value) {
|
||||
|
|
Loading…
Reference in New Issue