remove unused microBolusIOB

This commit is contained in:
Milos Kozak 2018-02-01 10:57:05 +01:00
parent e779dbf221
commit fa46798fdf
2 changed files with 0 additions and 7 deletions

View file

@ -22,7 +22,6 @@ public class IobTotal {
// oref1 // oref1
public double microBolusInsulin; public double microBolusInsulin;
public double microBolusIOB;
public long lastBolusTime; public long lastBolusTime;
public long lastTempDate; public long lastTempDate;
public int lastTempDuration; public int lastTempDuration;
@ -46,7 +45,6 @@ public class IobTotal {
copy.netbasalinsulin = netbasalinsulin; copy.netbasalinsulin = netbasalinsulin;
copy.hightempinsulin = hightempinsulin; copy.hightempinsulin = hightempinsulin;
copy.microBolusInsulin = microBolusInsulin; copy.microBolusInsulin = microBolusInsulin;
copy.microBolusIOB = microBolusIOB;
copy.lastBolusTime = lastBolusTime; copy.lastBolusTime = lastBolusTime;
copy.lastTempDate = lastTempDate; copy.lastTempDate = lastTempDate;
copy.lastTempDuration = lastTempDuration; copy.lastTempDuration = lastTempDuration;
@ -63,7 +61,6 @@ public class IobTotal {
this.netbasalinsulin = 0d; this.netbasalinsulin = 0d;
this.hightempinsulin = 0d; this.hightempinsulin = 0d;
this.microBolusInsulin = 0d; this.microBolusInsulin = 0d;
this.microBolusIOB = 0d;
this.lastBolusTime = 0; this.lastBolusTime = 0;
this.time = time; this.time = time;
} }
@ -78,7 +75,6 @@ public class IobTotal {
netInsulin += other.netInsulin; netInsulin += other.netInsulin;
extendedBolusInsulin += other.extendedBolusInsulin; extendedBolusInsulin += other.extendedBolusInsulin;
microBolusInsulin += other.microBolusInsulin; microBolusInsulin += other.microBolusInsulin;
microBolusIOB += other.microBolusIOB;
return this; return this;
} }
@ -91,7 +87,6 @@ public class IobTotal {
result.netbasalinsulin = bolusIOB.netbasalinsulin + basalIob.netbasalinsulin; result.netbasalinsulin = bolusIOB.netbasalinsulin + basalIob.netbasalinsulin;
result.hightempinsulin = basalIob.hightempinsulin + bolusIOB.hightempinsulin; result.hightempinsulin = basalIob.hightempinsulin + bolusIOB.hightempinsulin;
result.microBolusInsulin = bolusIOB.microBolusInsulin + basalIob.microBolusInsulin; result.microBolusInsulin = bolusIOB.microBolusInsulin + basalIob.microBolusInsulin;
result.microBolusIOB = bolusIOB.microBolusIOB + basalIob.microBolusIOB;
result.lastBolusTime = bolusIOB.lastBolusTime; result.lastBolusTime = bolusIOB.lastBolusTime;
result.lastTempDate = basalIob.lastTempDate; result.lastTempDate = basalIob.lastTempDate;
result.lastTempRate = basalIob.lastTempRate; result.lastTempRate = basalIob.lastTempRate;
@ -108,7 +103,6 @@ public class IobTotal {
this.netbasalinsulin = Round.roundTo(this.netbasalinsulin, 0.001); this.netbasalinsulin = Round.roundTo(this.netbasalinsulin, 0.001);
this.hightempinsulin = Round.roundTo(this.hightempinsulin, 0.001); this.hightempinsulin = Round.roundTo(this.hightempinsulin, 0.001);
this.microBolusInsulin = Round.roundTo(this.microBolusInsulin, 0.001); this.microBolusInsulin = Round.roundTo(this.microBolusInsulin, 0.001);
this.microBolusIOB = Round.roundTo(this.microBolusIOB, 0.001);
return this; return this;
} }

View file

@ -209,7 +209,6 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface {
if (t.date > total.lastBolusTime) if (t.date > total.lastBolusTime)
total.lastBolusTime = t.date; total.lastBolusTime = t.date;
total.basaliob += tIOB.iobContrib; total.basaliob += tIOB.iobContrib;
total.microBolusIOB += tIOB.iobContrib;
total.hightempinsulin += t.insulin; total.hightempinsulin += t.insulin;
total.netbasalinsulin += t.insulin; total.netbasalinsulin += t.insulin;
total.microBolusInsulin += t.insulin; total.microBolusInsulin += t.insulin;