From 2d27105e3c03b5783a6584ea5ae425ebd138286d Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 29 Jun 2023 13:54:37 -0700 Subject: [PATCH] chore: delete unused fuction clearTransformAttributes_ (#7229) --- core/block_svg.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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. /**