Skip to content

Commit

Permalink
🔪 commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcjohnson committed Jan 24, 2018
1 parent 7a67f6f commit 3581c87
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/traces/heatmap/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,7 @@ function findInterp(pixel, pixArray) {
}

function findInterpFromCenters(pixel, centerPixArray) {
// if(pixel <= centerPixArray[0]) return {bin0: 0, bin1: 0, frac: 0};
var maxBin = centerPixArray.length - 1;
// if(pixel >= centerPixArray[lastCenter]) return {bin0: lastCenter, bin1: lastCenter, frac: 0};

var bin = Lib.constrain(Lib.findBin(pixel, centerPixArray), 0, maxBin);
var pix0 = centerPixArray[bin];
var pix1 = centerPixArray[bin + 1];
Expand Down

0 comments on commit 3581c87

Please sign in to comment.