From ae745dac80e433e1df320e36fe2639f68a131c8c Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 27 Apr 2016 13:37:05 -0700 Subject: [PATCH] block db doesn't belong in block.js --- core/block.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/block.js b/core/block.js index 6fc29b49d..74746d037 100644 --- a/core/block.js +++ b/core/block.js @@ -1334,21 +1334,6 @@ Blockly.Block.prototype.moveBy = function(dx, dy) { Blockly.Events.fire(event); }; -/** - * Database of all blocks. - * @private - */ -Blockly.Block.BlockDB_ = Object.create(null); - -/** - * Find the block with the specified ID. - * @param {string} id ID of block to find. - * @return {Blockly.Block} The sought after block or null if not found. - */ -Blockly.Block.getById = function(id) { - return Blockly.Block.BlockDB_[id] || null; -}; - Blockly.Block.prototype.makeConnection = function(type) { return new Blockly.Connection(this, type); };