mirror of https://github.com/rusefi/rusefi-1.git
refactoring & dead code
This commit is contained in:
parent
06284c55a6
commit
bc0aa889d4
|
@ -67,26 +67,7 @@ public class EngineState {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
registerStringValueAction("msg", new ValueCallback<String>() {
|
registerStringValueAction(Fields.PROTOCOL_MSG, value -> MessagesCentral.getInstance().postMessage(ENGINE_STATE_CLASS, value));
|
||||||
@Override
|
|
||||||
public void onUpdate(String value) {
|
|
||||||
MessagesCentral.getInstance().postMessage(ENGINE_STATE_CLASS, value);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registerStringValueAction("time", new ValueCallback<String>() {
|
|
||||||
public void onUpdate(String value) {
|
|
||||||
double time;
|
|
||||||
try {
|
|
||||||
time = Double.parseDouble(value);
|
|
||||||
} catch (NumberFormatException e) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
listener.onTime(time);
|
|
||||||
for (EngineTimeListener l : timeListeners)
|
|
||||||
l.onTime(time);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue