mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Delete some deprecated functions
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user