Skip to content

Commit e1f2c1f

Browse files
edwingustafsonscottleibrand
authored andcommitted
Unused local variables (#1301)
* Unused local variables * Unused local variables
1 parent 62f1cd6 commit e1f2c1f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/autotune-prep/categorize.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ function categorizeBGDatums(opts) {
147147

148148
var BG;
149149
var avgDelta;
150-
var delta;
151150
// TODO: re-implement interpolation to avoid issues here with gaps
152151
// calculate avgDelta as last 4 datapoints to better catch more rises after COB hits zero
153152
if (typeof(bucketedData[i].glucose) !== 'undefined' && typeof(bucketedData[i+4].glucose) !== 'undefined') {
@@ -158,7 +157,6 @@ function categorizeBGDatums(opts) {
158157
continue;
159158
}
160159
avgDelta = (BG - bucketedData[i+4].glucose)/4;
161-
delta = (BG - bucketedData[i+1].glucose);
162160
} else { console.error("Could not find glucose data"); }
163161

164162
avgDelta = avgDelta.toFixed(2);

lib/bolus.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ function reduce (treatments) {
7373
(state.bolus ? state.bolus.amount : 0);
7474
var has_insulin = state.insulin && state.insulin > 0;
7575
var has_carbs = state.carbs && state.carbs > 0;
76-
var has_wizard = state.wizard ? true : false;
77-
var has_bolus = state.bolus ? true : false;
7876
if (state.square && state.bolus) {
7977
annotate("DualWave bolus for", state.square.duration, "minutes");
8078
} else if (state.square && state.wizard) {

0 commit comments

Comments
 (0)