From 34db941c29ce294cfebc7250a721b9c3b41d86bc Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 31 Jan 2018 00:10:46 +0100 Subject: [PATCH] Remove unused code to import TBRs from the pump. --- .../plugins/PumpCombo/ComboPlugin.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index 6a34805bd9..9aff14af68 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -997,7 +997,6 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf private boolean updateDbFromPumpHistory(@NonNull PumpHistory history) { boolean updated = false; - // Bolus for (Bolus pumpBolus : history.bolusHistory) { DetailedBolusInfo dbi = new DetailedBolusInfo(); dbi.date = calculateFakeBolusDate(pumpBolus); @@ -1009,21 +1008,6 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf updated = true; } } - - // TBRs - for (Tbr pumpTbr : history.tbrHistory) { - TemporaryBasal temporaryBasal = new TemporaryBasal(); - temporaryBasal.date = pumpTbr.timestamp; - temporaryBasal.pumpId = pumpTbr.timestamp + pumpTbr.percent; - temporaryBasal.source = Source.PUMP; - temporaryBasal.percentRate = pumpTbr.percent; - temporaryBasal.durationInMinutes = pumpTbr.duration; - temporaryBasal.isAbsolute = false; - if (MainApp.getConfigBuilder().addToHistoryTempBasal(temporaryBasal)) { - updated = true; - } - } - return updated; }