From 03e75a100c15bcd6b13e9f50c19b4e3450f21d44 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 13 Nov 2019 11:08:37 -0800 Subject: [PATCH] Delete unused property. --- core/renderers/common/path_object.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/core/renderers/common/path_object.js b/core/renderers/common/path_object.js index 9766b8ff9..2ff2b29f2 100644 --- a/core/renderers/common/path_object.js +++ b/core/renderers/common/path_object.js @@ -58,18 +58,6 @@ Blockly.blockRendering.PathObject = function(root, constants) { this.svgPath = Blockly.utils.dom.createSvgElement('path', {'class': 'blocklyPath'}, this.svgRoot); - // The light and dark paths need to exist (for now) because there is colouring - // code in block_svg that depends on them. But we will always set them to - // display: none, and eventually we want to remove them entirely. - - /** - * The light path of the block. - * @type {SVGElement} - * @package - */ - this.svgPathLight = Blockly.utils.dom.createSvgElement('path', - {'class': 'blocklyPathLight'}, this.svgRoot); - /** * The style object to use when colouring block paths. * @type {!Blockly.Theme.BlockStyle} @@ -85,7 +73,6 @@ Blockly.blockRendering.PathObject = function(root, constants) { */ Blockly.blockRendering.PathObject.prototype.setPath = function(pathString) { this.svgPath.setAttribute('d', pathString); - this.svgPathLight.style.display = 'none'; }; /**