mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-10 21:18:53 -04:00
Remove deprecated code. Re GH-304
This commit is contained in:
parent
8a9743b545
commit
c42f554438
3 changed files with 0 additions and 63 deletions
core
|
@ -133,20 +133,6 @@ Blockly.Block = function(workspace, prototypeName, opt_id) {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Obtain a newly created block.
|
||||
* @param {!Blockly.Workspace} workspace The block's workspace.
|
||||
* @param {?string} prototypeName Name of the language object containing
|
||||
* type-specific functions for this block.
|
||||
* @return {!Blockly.Block} The created block.
|
||||
* @deprecated December 2015
|
||||
*/
|
||||
Blockly.Block.obtain = function(workspace, prototypeName) {
|
||||
console.warn('Deprecated call to Blockly.Block.obtain, ' +
|
||||
'use workspace.newBlock instead.');
|
||||
return workspace.newBlock(prototypeName);
|
||||
};
|
||||
|
||||
/**
|
||||
* Optional text data that round-trips beween blocks and XML.
|
||||
* Has no effect. May be used by 3rd parties for meta information.
|
||||
|
@ -797,17 +783,6 @@ Blockly.Block.prototype.getFieldValue = function(name) {
|
|||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the language-neutral value from the field of a block.
|
||||
* @param {string} name The name of the field.
|
||||
* @return {?string} Value from the field or null if field does not exist.
|
||||
* @deprecated December 2013
|
||||
*/
|
||||
Blockly.Block.prototype.getTitleValue = function(name) {
|
||||
console.warn('Deprecated call to getTitleValue, use getFieldValue instead.');
|
||||
return this.getFieldValue(name);
|
||||
};
|
||||
|
||||
/**
|
||||
* Change the field value for a block (e.g. 'CHOOSE' or 'REMOVE').
|
||||
* @param {string} newValue Value to be the new field.
|
||||
|
@ -819,17 +794,6 @@ Blockly.Block.prototype.setFieldValue = function(newValue, name) {
|
|||
field.setValue(newValue);
|
||||
};
|
||||
|
||||
/**
|
||||
* Change the field value for a block (e.g. 'CHOOSE' or 'REMOVE').
|
||||
* @param {string} newValue Value to be the new field.
|
||||
* @param {string} name The name of the field.
|
||||
* @deprecated December 2013
|
||||
*/
|
||||
Blockly.Block.prototype.setTitleValue = function(newValue, name) {
|
||||
console.warn('Deprecated call to setTitleValue, use setFieldValue instead.');
|
||||
this.setFieldValue(newValue, name);
|
||||
};
|
||||
|
||||
/**
|
||||
* Set whether this block can chain onto the bottom of another block.
|
||||
* @param {boolean} newBoolean True if there can be a previous statement.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue