From 7e3344cf1757e5fd3aea43d1a4774a2cbe08862f Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 19 Jul 2019 09:55:29 -0700 Subject: [PATCH] Removed useless text input workspace change listener. --- core/field_textinput.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/field_textinput.js b/core/field_textinput.js index c525b5c9c..90ffa6580 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -308,10 +308,6 @@ Blockly.FieldTextInput.prototype.bindInputEvents_ = function(htmlInput) { this.onKeyPressWrapper_ = Blockly.bindEventWithChecks_( htmlInput, 'keypress', this, this.onHtmlInputChange_); - - // TODO: Figure out if this is necessary. - this.onWorkspaceChangeWrapper_ = this.resizeEditor_.bind(this); - this.workspace_.addChangeListener(this.onWorkspaceChangeWrapper_); }; /** @@ -322,7 +318,6 @@ Blockly.FieldTextInput.prototype.unbindInputEvents_ = function() { Blockly.unbindEvent_(this.onKeyDownWrapper_); Blockly.unbindEvent_(this.onKeyUpWrapper_); Blockly.unbindEvent_(this.onKeyPressWrapper_); - this.workspace_.removeChangeListener(this.onWorkspaceChangeWrapper_); }; /**