From df888eb32deaa2e5258b875112584dd2c56c5117 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 26 Jul 2018 17:38:20 -0700 Subject: [PATCH] Remove setOpacity and getOpacity --- core/block_svg.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/block_svg.js b/core/block_svg.js index f7e15ec57..4cd15dde5 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -487,25 +487,6 @@ Blockly.BlockSvg.prototype.getBoundingRectangle = function() { return {topLeft: topLeft, bottomRight: bottomRight}; }; -/** - * Set block opacity for SVG rendering. - * @param {number} opacity Intended opacity, betweeen 0 and 1 - */ -Blockly.BlockSvg.prototype.setOpacity = function(opacity) { - this.opacity_ = opacity; - if (this.rendered) { - this.updateColour(); - } -}; - -/** - * Get block opacity for SVG rendering. - * @return {number} Intended opacity, betweeen 0 and 1 - */ -Blockly.BlockSvg.prototype.getOpacity = function() { - return this.opacity_; -}; - /** * Set whether the block is collapsed or not. * @param {boolean} collapsed True if collapsed.