diff options
Diffstat (limited to 'jarmon/jarmon.js')
-rw-r--r-- | jarmon/jarmon.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index 5952aa2..0919915 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -679,30 +679,6 @@ jarmon.Chart.prototype.draw = function() { }; -jarmon.Chart.fromRecipe = function(recipes, templateFactory, downloader) { - /** - * A static factory method to generate a list of I{Chart} from a list of - * recipes and a list of available rrd files in collectd path format. - * - * @method fromRecipe - * @param recipes {Array} A list of recipe objects. - * @param templateFactory {Function} A callable which generates an html - * template for a chart. - * @param downloader {Function} A download function which returns a Deferred - * @return {Array} A list of Chart objects - **/ - - var charts = []; - - for(var i=0; i<recipes.length; i++) { - charts.push( - new jarmon.Chart(templateFactory(), recipes[i], downloader) - ); - } - return charts; -}; - - /** * Generate a form through which to choose a data source from a remote RRD file * |