From: Dan Vanderkam Date: Wed, 17 Jul 2013 14:51:49 +0000 (+0200) Subject: lightweight dead code elimination X-Git-Tag: v1.0.0~16 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=24c213629697b908cf5727990a17c265a7dfe444;p=dygraphs.git lightweight dead code elimination --- 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