diff --git a/core/block_svg.ts b/core/block_svg.ts index fea8b4320..0b320c2e0 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -428,21 +428,13 @@ export class BlockSvg this.getSvgRoot().setAttribute('transform', this.getTranslation()); } - /** - * Clear the block of transform="..." attributes. - * Used when the block is switching from 3d to 2d transform or vice versa. - */ - private clearTransformAttributes_() { - this.getSvgRoot().removeAttribute('transform'); - } - /** Snap this block to the nearest grid point. */ snapToGrid() { if (this.isDeadOrDying()) { return; // Deleted block. } if (this.workspace.isDragging()) { - return; // Don't bump blocks during a drag.; + return; // Don't bump blocks during a drag. } if (this.getParent()) { @@ -1085,7 +1077,6 @@ export class BlockSvg } // Overrides of functions on Blockly.Block that take into account whether the - // block has been rendered. /**