From 24c213629697b908cf5727990a17c265a7dfe444 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 17 Jul 2013 16:51:49 +0200 Subject: [PATCH] lightweight dead code elimination --- closure-todo.txt | 2 +- dygraph-options.js | 9 --------- dygraph.js | 9 --------- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/closure-todo.txt b/closure-todo.txt index 5c61495..392ede4 100644 --- a/closure-todo.txt +++ b/closure-todo.txt @@ -13,7 +13,6 @@ Core: - dygraph-interaction-model.js - dygraph-layout.js x dygraph-options.js -- dygraph-range-selector.js - dygraph.js x dygraph-gviz.js x dygraph-tickers.js @@ -29,6 +28,7 @@ Plugins: - plugins/chart-labels.js - plugins/grid.js - plugins/legend.js +- plugins/range-selector.js Here's a command that can be used to build dygraphs using the closure compiler: diff --git a/dygraph-options.js b/dygraph-options.js index 0f90086..2dc88ae 100644 --- a/dygraph-options.js +++ b/dygraph-options.js @@ -370,15 +370,6 @@ DygraphOptions.prototype.seriesNames = function() { return this.labels_; }; -/* Are we using this? */ -/** - * Return the index of the specified series. - * @param {string} series the series name. - */ -DygraphOptions.prototype.indexOfSeries = function(series) { - return this.series_[series].idx; -}; - return DygraphOptions; })(); diff --git a/dygraph.js b/dygraph.js index 1ee711c..6a162e0 100644 --- a/dygraph.js +++ b/dygraph.js @@ -3803,15 +3803,6 @@ Dygraph.prototype.indexFromSetName = function(name) { }; /** - * Get the internal dataset index given its name. These are numbered starting from 0, - * and only count visible sets. - * @private - */ -Dygraph.prototype.datasetIndexFromSetName_ = function(name) { - return this.datasetIndex_[this.indexFromSetName(name)]; -}; - -/** * @private * Adds a default style for the annotation CSS classes to the document. This is * only executed when annotations are actually used. It is designed to only be -- 2.7.4