From 5231bdb04323196251a891d251ab0f395c0048ed Mon Sep 17 00:00:00 2001 From: DD Liu Date: Thu, 15 Jun 2017 10:28:51 -0400 Subject: [PATCH] Revert "add back set checkbox state" This reverts commit a15ba05f225bb545facbaac4c460347e40feb6cc. --- core/flyout_vertical.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/flyout_vertical.js b/core/flyout_vertical.js index 8a6a2cc1b3..d239c96dc1 100644 --- a/core/flyout_vertical.js +++ b/core/flyout_vertical.js @@ -557,25 +557,6 @@ Blockly.VerticalFlyout.prototype.checkboxClicked_ = function(checkboxObj) { }; }; -/** - * Explicitly set the clicked state of the checkbox for the given block. - * @param {string} blockId ID of block whose checkbox should be changed. - * @param {boolean} clicked True if the box should be marked clicked. - */ -Blockly.VerticalFlyout.prototype.setCheckboxState = function(blockId, clicked) { - var block = this.workspace_.getBlockById(blockId); - if (!block) { - throw 'No block found in the flyout for id ' + blockId; - } - var checkboxObj = block.flyoutCheckbox; - checkboxObj.clicked = clicked; - if (checkboxObj.clicked) { - Blockly.addClass_((checkboxObj.svgRoot), 'checked'); - } else { - Blockly.removeClass_((checkboxObj.svgRoot), 'checked'); - } -}; - /** * Handle a mouse-move to vertically drag the flyout. * @param {!Event} e Mouse move event.