Commit 62d452d5 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/scatterPlot.js: clean, remove dead code

parent 13d0e1b3
Pipeline #2523 passed with stages
in 2 minutes and 37 seconds
......@@ -815,31 +815,6 @@ ScatterPlot.prototype = {
},
/**
* compute the height of a bar representing a given clone in the bar graph mode
* @param {integer} cloneID - clone index
* @return {float} height
* */
getBarHeight: function(cloneID) {
var size = this.m.clone(cloneID)
.getSize();
return size / this.bar_max;
},
/**
* compute the x pos of a bar representing a given clone in the bar graph mode
* @param {integer} cloneID - clone index
* @return {float} pos
* */
getBarPosition: function(cloneID) {
for (var i = 0; i < this.vKey.length; i++) {
for (var j = 0; j < this.bar_v[this.vKey[i]].clones.length; j++) {
if (this.bar_v[this.vKey[i]].clones[j].id == cloneID)
return this.bar_v[this.vKey[i]].clones[j].pos;
}
}
},
/**
* select a mode
* @param {mode} new mode, this.MODE_*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment