diff --git a/core/block.js b/core/block.js index 6f51bc33f..0548a5cc3 100644 --- a/core/block.js +++ b/core/block.js @@ -229,7 +229,7 @@ Blockly.Block = function(workspace, prototypeName, opt_id) { // In case init threw, recordUndo flag should still be reset. Blockly.Events.recordUndo = initialUndoFlag; } - + // Record initial inline state. /** @type {boolean|undefined} */ this.inputsInlineDefault = this.inputsInline; @@ -1261,20 +1261,6 @@ Blockly.Block.prototype.getOutputShape = function() { return this.outputShape_; }; -/** - * Set whether the block is disabled or not. - * @param {boolean} disabled True if disabled. - * @deprecated May 2019 - */ -Blockly.Block.prototype.setDisabled = function(disabled) { - Blockly.utils.deprecation.warn( - 'Block.prototype.setDisabled', - 'May 2019', - 'May 2020', - 'Block.prototype.setEnabled'); - this.setEnabled(!disabled); -}; - /** * Get whether this block is enabled or not. * @return {boolean} True if enabled. diff --git a/core/block_svg.js b/core/block_svg.js index bf13267f4..6e2bb6f5c 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -1134,20 +1134,6 @@ Blockly.BlockSvg.prototype.setMutator = function(mutator) { } }; -/** - * Set whether the block is disabled or not. - * @param {boolean} disabled True if disabled. - * @deprecated May 2019 - */ -Blockly.BlockSvg.prototype.setDisabled = function(disabled) { - Blockly.utils.deprecation.warn( - 'BlockSvg.prototype.setDisabled', - 'May 2019', - 'May 2020', - 'BlockSvg.prototype.setEnabled'); - this.setEnabled(!disabled); -}; - /** * Set whether the block is enabled or not. * @param {boolean} enabled True if enabled.