From 03443f33587502676f2591d798c63e2af08f581b Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 29 Oct 2017 21:39:25 +0100 Subject: [PATCH] Dead code be gone. --- .../jotomo/ruffyscripter/RuffyScripter.java | 31 ------------------- .../interaction/actions/BolusActivity.java | 1 - 2 files changed, 32 deletions(-) diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index fdc0786296..5a2064ca83 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -510,37 +510,6 @@ public class RuffyScripter implements RuffyCommands { public static byte BACK = (byte) 0x33; } - interface Step { - void run(boolean waitForPumpUpdateAfterwards); - - } -/* - - private long lastPumpWrite = 0; - - private void wrapNoNotTheSubwayKind(Step step, boolean waitForPumpUpdateAfterwards) { - if (!connected) { - // try to reconnect, with a timeout before the pump raises a menu timeout - // timeout = lastPumpWrite + 15 * 1000 // avoid default pump timeout of 20s - } - step.run(waitForPumpUpdateAfterwards); - // TODO there's a chance the above was not executed by the pump; assume that if we're not - // still connected and abort the command and retry if it it's retryable - // isConnected - lastPumpWrite = System.currentTimeMillis(); - - // TODO: spike: source the ruffy driver package and do away with the remote service - - refuse to debug and fix incomprehensive code that Sandra wrote, can't explain why she - did what she did nor commented on it - - if (!connected) { -// cancelInternal(); -// if (activeCmd.isRetriable) { - } - } -*/ - // === pump ops === public Menu getCurrentMenu() { long timeout = System.currentTimeMillis() + 5 * 1000; diff --git a/wear/src/main/java/info/nightscout/androidaps/interaction/actions/BolusActivity.java b/wear/src/main/java/info/nightscout/androidaps/interaction/actions/BolusActivity.java index 4860cb3d56..814020d742 100644 --- a/wear/src/main/java/info/nightscout/androidaps/interaction/actions/BolusActivity.java +++ b/wear/src/main/java/info/nightscout/androidaps/interaction/actions/BolusActivity.java @@ -70,7 +70,6 @@ public class BolusActivity extends ViewSelectorActivity { if (editInsulin != null){ def = SafeParse.stringToDouble(editInsulin.editText.getText().toString()); } - // TODO use pump supported stet size editInsulin = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, def, 0d, 30d, 0.1d, new DecimalFormat("#0.0"), false); setLabelToPlusMinusView(view, "insulin"); container.addView(view);