]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove unused code from core controller.
authorEvert Timberg <evert.timberg+github@gmail.com>
Thu, 26 May 2016 01:30:22 +0000 (21:30 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Thu, 26 May 2016 01:30:22 +0000 (21:30 -0400)
src/core/core.controller.js

index e53faaf6a5e61fca79012048aecc156544bdb2f3..a8a9ed58f67d2abba2b5ea2c4424681821a5bb4e 100644 (file)
@@ -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);
                },