mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
Delete MetricListToObject which never used
This commit is contained in:
parent
2b5fa599fb
commit
ddb4b928a0
@ -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 = {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user