mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-12 22:19:17 -04:00
Remove unused changeOutput func.
This commit is contained in:
parent
179052792c
commit
83abc988a7
3 changed files with 15 additions and 26 deletions
core
|
@ -758,20 +758,6 @@ Blockly.Block.prototype.setOutput = function(newBoolean, opt_check) {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Change the output type on a block.
|
||||
* @param {string|Array.<string>|null} check Returned type or list of
|
||||
* returned types. Null or undefined if any type could be returned
|
||||
* (e.g. variable get). It is fine if this is the same as the old type.
|
||||
* @throws {goog.asserts.AssertionError} if the block did not already have an
|
||||
* output.
|
||||
*/
|
||||
Blockly.Block.prototype.changeOutput = function(check) {
|
||||
goog.asserts.assert(this.outputConnection,
|
||||
'Only use changeOutput() on blocks that already have an output.');
|
||||
this.outputConnection.setCheck(check);
|
||||
};
|
||||
|
||||
/**
|
||||
* Set whether value inputs are arranged horizontally or vertically.
|
||||
* @param {boolean} newBoolean True if inputs are horizontal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue