Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ddb4b928
Commit
ddb4b928
authored
Apr 12, 2015
by
Masaori Koshiba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete MetricListToObject which never used
parent
2b5fa599
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
public/app/plugins/datasource/kairosdb/queryCtrl.js
+0
-19
No files found.
public/app/plugins/datasource/kairosdb/queryCtrl.js
View file @
ddb4b928
...
@@ -327,25 +327,6 @@ function (angular, _) {
...
@@ -327,25 +327,6 @@ function (angular, _) {
};
};
// Validation
// 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
)
{
function
validateTarget
(
target
)
{
var
errs
=
{};
var
errs
=
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment