Removed unused function definitions.

This commit is contained in:
Alexander Zobnin
2016-01-28 20:56:31 +03:00
parent 8278ad67cb
commit 35e6ad8df5

View File

@@ -23,21 +23,6 @@ function (_, $) {
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({
name: 'groupBy',
category: 'Transform',
@@ -48,13 +33,6 @@ function (_, $) {
defaultParams: ['1m', 'avg'],
});
addFuncDef({
name: 'perSecond',
category: 'Transform',
params: [{ name: "max value", type: "int", optional: true }],
defaultParams: [],
});
addFuncDef({
name: 'sum',
category: 'Aggregate',
@@ -98,14 +76,6 @@ function (_, $) {
defaultParams: [],
});
addFuncDef({
name: 'averageSeries',
shortName: 'avg',
category: 'Alias',
params: optionalSeriesRefArgs,
defaultParams: [''],
});
_.each(categories, function(funcList, catName) {
categories[catName] = _.sortBy(funcList, 'name');
});