Commit 96761b0b authored by flothoni's avatar flothoni Committed by Mikaël Salson
Browse files

model_loader; remove dead code

Link to #4541
parent 2006114d
......@@ -425,32 +425,6 @@ Model_loader.prototype = {
return fields;
},
/**
* recalculating the array is sometimes necessary if the analysis and fused_file have diverged.
* @param {Array} arr Order as loaded from analysis file
* @return {Array} [description]
*/
calculateOrder: function(arr) {
tmp = arr.slice();
res = arr.slice();
previous = -1;
while(tmp.length > 0) {
min = tmp[0];
min_idx = 0;
for(var i = 0; i < tmp.length; i++) {
if (tmp[i] < min) {
min = tmp[i];
min_idx = i;
}
}
idx = arr.indexOf(min);
tmp.splice(min_idx, 1);
res[idx] = ++previous;
}
return res;
},
buildDict: function(first, second) {
dict = {};
for (var i = 0; i < first.length; i++){
......
Markdown is supported
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