From 84e673692721012800c7ffbbee55e1958d801da7 Mon Sep 17 00:00:00 2001 From: Edwin Gustafson Date: Sun, 20 Oct 2019 16:50:48 -0400 Subject: [PATCH] Unused local variables (#1301) * Unused local variables * Unused local variables --- lib/autotune-prep/categorize.js | 2 -- lib/bolus.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/autotune-prep/categorize.js b/lib/autotune-prep/categorize.js index 56042a7b8..f3bbf081a 100644 --- a/lib/autotune-prep/categorize.js +++ b/lib/autotune-prep/categorize.js @@ -147,7 +147,6 @@ function categorizeBGDatums(opts) { var BG; var avgDelta; - var delta; // TODO: re-implement interpolation to avoid issues here with gaps // calculate avgDelta as last 4 datapoints to better catch more rises after COB hits zero if (typeof(bucketedData[i].glucose) !== 'undefined' && typeof(bucketedData[i+4].glucose) !== 'undefined') { @@ -158,7 +157,6 @@ function categorizeBGDatums(opts) { continue; } avgDelta = (BG - bucketedData[i+4].glucose)/4; - delta = (BG - bucketedData[i+1].glucose); } else { console.error("Could not find glucose data"); } avgDelta = avgDelta.toFixed(2); diff --git a/lib/bolus.js b/lib/bolus.js index 8a68ff80a..c7dc0f61d 100644 --- a/lib/bolus.js +++ b/lib/bolus.js @@ -73,8 +73,6 @@ function reduce (treatments) { (state.bolus ? state.bolus.amount : 0); var has_insulin = state.insulin && state.insulin > 0; var has_carbs = state.carbs && state.carbs > 0; - var has_wizard = state.wizard ? true : false; - var has_bolus = state.bolus ? true : false; if (state.square && state.bolus) { annotate("DualWave bolus for", state.square.duration, "minutes"); } else if (state.square && state.wizard) {