From 339eb37e87d81b1452a398ca98bff918cb62ff6f Mon Sep 17 00:00:00 2001 From: Igor Sfiligoi Date: Wed, 6 Nov 2013 23:15:50 +0000 Subject: Get rid of the DoNothing function and use the implicit Ident transformation by passing the index --- src/examples/rrdJFlotFilter.html | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/examples/rrdJFlotFilter.html b/src/examples/rrdJFlotFilter.html index 1fee276..eb49ec2 100644 --- a/src/examples/rrdJFlotFilter.html +++ b/src/examples/rrdJFlotFilter.html @@ -87,13 +87,6 @@ // Next three functions are for use in RRDFilterOp, // which requires a list of functions, one for each DS - //Do nothing to the DS - function DoNothing(ds) { - this.getName = function() {return ds;} - this.getDSNames = function() {return [ds];} - this.computeResult = function(val_list) {return val_list[0];} - } - //Sum two DSs function SumDS(ds1,ds2) { this.getName = function() {return ds1+"+"+ds2;} @@ -151,10 +144,9 @@ var i = 0; //create a new rrdlist, which contains all original elements - // (kept the same by DoNothing()) // plus additional operated-on DSs from RRDFilterOp for (i=0;i