Combo: remove dead code.

This commit is contained in:
Johannes Mockenhaupt 2018-08-27 19:03:46 +02:00
parent 0eb08c2eaf
commit 3fd3d0f059
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 10 additions and 14 deletions

View file

@ -326,7 +326,6 @@ public class ComboPlugin extends PluginBase implements PumpInterface, Constraint
return basalProfile; return basalProfile;
} }
@NonNull
@Override @Override
public long lastDataTime() { public long lastDataTime() {
return pump.lastSuccessfulCmdTime; return pump.lastSuccessfulCmdTime;
@ -1240,7 +1239,7 @@ public class ComboPlugin extends PluginBase implements PumpInterface, Constraint
pumpHistoryChanged = updateDbFromPumpHistory(historyResult.history); pumpHistoryChanged = updateDbFromPumpHistory(historyResult.history);
if (L.isEnabled(L.PUMP) && pumpHistoryChanged) { if (L.isEnabled(L.PUMP) && pumpHistoryChanged) {
log.debug("Setting 'pumpHistoryChanged' true"); log.debug("Setting 'pumpHistoryChanged' true");
} }
List<Bolus> updatedPumpBolusHistory = historyResult.history.bolusHistory; List<Bolus> updatedPumpBolusHistory = historyResult.history.bolusHistory;

View file

@ -54,8 +54,6 @@ public class RuffyScripter implements RuffyCommands {
private volatile long menuLastUpdated = 0; private volatile long menuLastUpdated = 0;
private volatile boolean unparsableMenuEncountered; private volatile boolean unparsableMenuEncountered;
private String previousCommand = "<none>";
private volatile Command activeCmd = null; private volatile Command activeCmd = null;
private boolean started = false; private boolean started = false;
@ -64,43 +62,43 @@ public class RuffyScripter implements RuffyCommands {
private IRTHandler mHandler = new IRTHandler.Stub() { private IRTHandler mHandler = new IRTHandler.Stub() {
@Override @Override
public void log(String message) throws RemoteException { public void log(String message) {
if (log.isTraceEnabled()) { if (log.isTraceEnabled()) {
log.trace("Ruffy says: " + message); log.trace("Ruffy says: " + message);
} }
} }
@Override @Override
public void fail(String message) throws RemoteException { public void fail(String message) {
log.warn("Ruffy warns: " + message); log.warn("Ruffy warns: " + message);
} }
@Override @Override
public void requestBluetooth() throws RemoteException { public void requestBluetooth() {
log.trace("Ruffy invoked requestBluetooth callback"); log.trace("Ruffy invoked requestBluetooth callback");
} }
@Override @Override
public void rtStopped() throws RemoteException { public void rtStopped() {
log.debug("rtStopped callback invoked"); log.debug("rtStopped callback invoked");
currentMenu = null; currentMenu = null;
} }
@Override @Override
public void rtStarted() throws RemoteException { public void rtStarted() {
log.debug("rtStarted callback invoked"); log.debug("rtStarted callback invoked");
} }
@Override @Override
public void rtClearDisplay() throws RemoteException { public void rtClearDisplay() {
} }
@Override @Override
public void rtUpdateDisplay(byte[] quarter, int which) throws RemoteException { public void rtUpdateDisplay(byte[] quarter, int which) {
} }
@Override @Override
public void rtDisplayHandleMenu(Menu menu) throws RemoteException { public void rtDisplayHandleMenu(Menu menu) {
// method is called every ~500ms // method is called every ~500ms
log.debug("rtDisplayHandleMenu: " + menu); log.debug("rtDisplayHandleMenu: " + menu);
@ -113,7 +111,7 @@ public class RuffyScripter implements RuffyCommands {
} }
@Override @Override
public void rtDisplayHandleNoMenu() throws RemoteException { public void rtDisplayHandleNoMenu() {
log.warn("rtDisplayHandleNoMenu callback invoked"); log.warn("rtDisplayHandleNoMenu callback invoked");
unparsableMenuEncountered = true; unparsableMenuEncountered = true;
} }
@ -348,7 +346,6 @@ public class RuffyScripter implements RuffyCommands {
// ignore // ignore
} }
} }
previousCommand = "" + activeCmd;
activeCmd = null; activeCmd = null;
} }
} }