Strip blockExecutionData

This commit is contained in:
Tim Mickel 2016-05-03 13:31:03 -04:00
parent 379b2dec79
commit add3e9dec9

View file

@ -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];
};
// -----------------------------------------------------------------------------