Removed unused function definitions.
This commit is contained in:
@@ -23,21 +23,6 @@ function (_, $) {
|
|||||||
index[funcDef.shortName || funcDef.name] = funcDef;
|
index[funcDef.shortName || funcDef.name] = funcDef;
|
||||||
}
|
}
|
||||||
|
|
||||||
var optionalSeriesRefArgs = [
|
|
||||||
{ name: 'other', type: 'value_or_series', optional: true },
|
|
||||||
{ name: 'other', type: 'value_or_series', optional: true },
|
|
||||||
{ name: 'other', type: 'value_or_series', optional: true },
|
|
||||||
{ name: 'other', type: 'value_or_series', optional: true },
|
|
||||||
{ name: 'other', type: 'value_or_series', optional: true }
|
|
||||||
];
|
|
||||||
|
|
||||||
addFuncDef({
|
|
||||||
name: 'scaleToSeconds',
|
|
||||||
category: 'Transform',
|
|
||||||
params: [{ name: 'seconds', type: 'int' }],
|
|
||||||
defaultParams: [1],
|
|
||||||
});
|
|
||||||
|
|
||||||
addFuncDef({
|
addFuncDef({
|
||||||
name: 'groupBy',
|
name: 'groupBy',
|
||||||
category: 'Transform',
|
category: 'Transform',
|
||||||
@@ -48,13 +33,6 @@ function (_, $) {
|
|||||||
defaultParams: ['1m', 'avg'],
|
defaultParams: ['1m', 'avg'],
|
||||||
});
|
});
|
||||||
|
|
||||||
addFuncDef({
|
|
||||||
name: 'perSecond',
|
|
||||||
category: 'Transform',
|
|
||||||
params: [{ name: "max value", type: "int", optional: true }],
|
|
||||||
defaultParams: [],
|
|
||||||
});
|
|
||||||
|
|
||||||
addFuncDef({
|
addFuncDef({
|
||||||
name: 'sum',
|
name: 'sum',
|
||||||
category: 'Aggregate',
|
category: 'Aggregate',
|
||||||
@@ -98,14 +76,6 @@ function (_, $) {
|
|||||||
defaultParams: [],
|
defaultParams: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
addFuncDef({
|
|
||||||
name: 'averageSeries',
|
|
||||||
shortName: 'avg',
|
|
||||||
category: 'Alias',
|
|
||||||
params: optionalSeriesRefArgs,
|
|
||||||
defaultParams: [''],
|
|
||||||
});
|
|
||||||
|
|
||||||
_.each(categories, function(funcList, catName) {
|
_.each(categories, function(funcList, catName) {
|
||||||
categories[catName] = _.sortBy(funcList, 'name');
|
categories[catName] = _.sortBy(funcList, 'name');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user