mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-03 09:04:40 -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 = {};
|
this.blocks = {};
|
||||||
|
|
||||||
/**
|
|
||||||
* Primitive-accessible execution metadata for each block.
|
|
||||||
* @type {Object.<string, Object>}
|
|
||||||
*/
|
|
||||||
this.blockExecutionData = {};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All stacks in the workspace.
|
* All stacks in the workspace.
|
||||||
* A list of block IDs that represent stacks (first block in stack).
|
* 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) {
|
Runtime.prototype.createBlock = function (block, opt_isFlyoutBlock) {
|
||||||
// Create new block
|
// Create new block
|
||||||
this.blocks[block.id] = block;
|
this.blocks[block.id] = block;
|
||||||
this.blockExecutionData[block.id] = {};
|
|
||||||
|
|
||||||
// Walk each field and add any shadow blocks
|
// Walk each field and add any shadow blocks
|
||||||
// @todo Expand this to cover vertical / nested 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) {
|
for (var y in shadows) {
|
||||||
var shadow = shadows[y];
|
var shadow = shadows[y];
|
||||||
this.blocks[shadow.id] = shadow;
|
this.blocks[shadow.id] = shadow;
|
||||||
this.blockExecutionData[shadow.id] = {};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,7 +194,6 @@ Runtime.prototype.deleteBlock = function (e) {
|
||||||
|
|
||||||
// Delete block
|
// Delete block
|
||||||
delete this.blocks[e.id];
|
delete this.blocks[e.id];
|
||||||
delete this.blockExecutionData[e.id];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue