From 35e6ad8df554bfe7340c0e65e4df5e16dbdaf30c Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 28 Jan 2016 20:56:31 +0300 Subject: [PATCH] Removed unused function definitions. --- plugins/datasource-zabbix/metricFunctions.js | 30 -------------------- 1 file changed, 30 deletions(-) diff --git a/plugins/datasource-zabbix/metricFunctions.js b/plugins/datasource-zabbix/metricFunctions.js index 6138024..a708f98 100644 --- a/plugins/datasource-zabbix/metricFunctions.js +++ b/plugins/datasource-zabbix/metricFunctions.js @@ -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'); });