Skip to content

Commit

Permalink
Unused local variables (#1301)
Browse files Browse the repository at this point in the history
* Unused local variables

* Unused local variables
  • Loading branch information
edwingustafson authored and scottleibrand committed Oct 20, 2019
1 parent 9b50667 commit 84e6736
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/autotune-prep/categorize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions lib/bolus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 84e6736

Please sign in to comment.