From: Evert Timberg Date: Thu, 26 May 2016 01:30:22 +0000 (-0400) Subject: Remove unused code from core controller. X-Git-Tag: v2.1.5~34^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46fc96bf4d97989096aa1024be3d0ee2c9a6a789;p=thirdparty%2FChart.js.git Remove unused code from core controller. --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index e53faaf6a..a8a9ed58f 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -53,7 +53,6 @@ module.exports = function(Chart) { this.ensureScalesHaveIDs(); this.buildOrUpdateControllers(); this.buildScales(); - this.buildSurroundingItems(); this.updateLayout(); this.resetElements(); this.initToolTip(); @@ -166,18 +165,6 @@ module.exports = function(Chart) { Chart.scaleService.addScalesToLayout(this); }, - buildSurroundingItems: function() { - /*if (this.options.title) { - this.titleBlock = new Chart.Title({ - ctx: this.chart.ctx, - options: this.options.title, - chart: this - }); - - Chart.layoutService.addBox(this, this.titleBlock); - }*/ - }, - updateLayout: function() { Chart.layoutService.update(this, this.chart.width, this.chart.height); },