From fa46798fdf4d975c30822a39eb381ed2ad440789 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 1 Feb 2018 10:57:05 +0100 Subject: [PATCH] remove unused microBolusIOB --- .../main/java/info/nightscout/androidaps/data/IobTotal.java | 6 ------ .../androidaps/plugins/Treatments/TreatmentsPlugin.java | 1 - 2 files changed, 7 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/data/IobTotal.java b/app/src/main/java/info/nightscout/androidaps/data/IobTotal.java index 34df937d14..df691e7645 100644 --- a/app/src/main/java/info/nightscout/androidaps/data/IobTotal.java +++ b/app/src/main/java/info/nightscout/androidaps/data/IobTotal.java @@ -22,7 +22,6 @@ public class IobTotal { // oref1 public double microBolusInsulin; - public double microBolusIOB; public long lastBolusTime; public long lastTempDate; public int lastTempDuration; @@ -46,7 +45,6 @@ public class IobTotal { copy.netbasalinsulin = netbasalinsulin; copy.hightempinsulin = hightempinsulin; copy.microBolusInsulin = microBolusInsulin; - copy.microBolusIOB = microBolusIOB; copy.lastBolusTime = lastBolusTime; copy.lastTempDate = lastTempDate; copy.lastTempDuration = lastTempDuration; @@ -63,7 +61,6 @@ public class IobTotal { this.netbasalinsulin = 0d; this.hightempinsulin = 0d; this.microBolusInsulin = 0d; - this.microBolusIOB = 0d; this.lastBolusTime = 0; this.time = time; } @@ -78,7 +75,6 @@ public class IobTotal { netInsulin += other.netInsulin; extendedBolusInsulin += other.extendedBolusInsulin; microBolusInsulin += other.microBolusInsulin; - microBolusIOB += other.microBolusIOB; return this; } @@ -91,7 +87,6 @@ public class IobTotal { result.netbasalinsulin = bolusIOB.netbasalinsulin + basalIob.netbasalinsulin; result.hightempinsulin = basalIob.hightempinsulin + bolusIOB.hightempinsulin; result.microBolusInsulin = bolusIOB.microBolusInsulin + basalIob.microBolusInsulin; - result.microBolusIOB = bolusIOB.microBolusIOB + basalIob.microBolusIOB; result.lastBolusTime = bolusIOB.lastBolusTime; result.lastTempDate = basalIob.lastTempDate; result.lastTempRate = basalIob.lastTempRate; @@ -108,7 +103,6 @@ public class IobTotal { this.netbasalinsulin = Round.roundTo(this.netbasalinsulin, 0.001); this.hightempinsulin = Round.roundTo(this.hightempinsulin, 0.001); this.microBolusInsulin = Round.roundTo(this.microBolusInsulin, 0.001); - this.microBolusIOB = Round.roundTo(this.microBolusIOB, 0.001); return this; } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java index f0b63b0b6d..45f06371f7 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java @@ -209,7 +209,6 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface { if (t.date > total.lastBolusTime) total.lastBolusTime = t.date; total.basaliob += tIOB.iobContrib; - total.microBolusIOB += tIOB.iobContrib; total.hightempinsulin += t.insulin; total.netbasalinsulin += t.insulin; total.microBolusInsulin += t.insulin;