mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-15 07:51:04 -04:00
Strip blockExecutionData
This commit is contained in:
parent
379b2dec79
commit
add3e9dec9
1 changed files with 0 additions and 9 deletions
|
@ -23,12 +23,6 @@ function Runtime () {
|
|||
*/
|
||||
this.blocks = {};
|
||||
|
||||
/**
|
||||
* Primitive-accessible execution metadata for each block.
|
||||
* @type {Object.<string, Object>}
|
||||
*/
|
||||
this.blockExecutionData = {};
|
||||
|
||||
/**
|
||||
* All stacks in the workspace.
|
||||
* A list of block IDs that represent stacks (first block in stack).
|
||||
|
@ -96,7 +90,6 @@ Runtime.THREAD_STEP_INTERVAL = 1000 / 60;
|
|||
Runtime.prototype.createBlock = function (block, opt_isFlyoutBlock) {
|
||||
// Create new block
|
||||
this.blocks[block.id] = block;
|
||||
this.blockExecutionData[block.id] = {};
|
||||
|
||||
// Walk each field and add any shadow blocks
|
||||
// @todo Expand this to cover vertical / nested blocks
|
||||
|
@ -105,7 +98,6 @@ Runtime.prototype.createBlock = function (block, opt_isFlyoutBlock) {
|
|||
for (var y in shadows) {
|
||||
var shadow = shadows[y];
|
||||
this.blocks[shadow.id] = shadow;
|
||||
this.blockExecutionData[shadow.id] = {};
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -202,7 +194,6 @@ Runtime.prototype.deleteBlock = function (e) {
|
|||
|
||||
// Delete block
|
||||
delete this.blocks[e.id];
|
||||
delete this.blockExecutionData[e.id];
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue