Commit ddb4b928 by Masaori Koshiba

Delete MetricListToObject which never used

parent 2b5fa599
......@@ -327,25 +327,6 @@ function (angular, _) {
};
// Validation
function MetricListToObject(MetricList) {
var result = {};
var Metric;
var MetricArray = [];
var MetricCnt = 0;
for (var i =0;i < MetricList.length; i++) {
Metric = MetricList[i];
MetricArray = Metric.split('.');
if (!result.hasOwnProperty(MetricArray[0])) {
result[MetricArray[0]] = {};
}
if (!result[MetricArray[0]].hasOwnProperty(MetricArray[1])) {
result[MetricArray[0]][MetricArray[1]] = [];
}
result[MetricArray[0]][MetricArray[1]].push(MetricArray[2]);
}
return result;
}
function validateTarget(target) {
var errs = {};
......
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