chore: delete unused fuction clearTransformAttributes_ (#7229)

This commit is contained in:
Rachel Fenichel
2023-06-29 13:54:37 -07:00
committed by GitHub
parent 55decfe7c9
commit 2d27105e3c

View File

@@ -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.
/**