mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
chore: delete unused fuction clearTransformAttributes_ (#7229)
This commit is contained in:
@@ -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.
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user