Skip to content

Commit

Permalink
Remove useless code (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
cptbtptpbcptdtptp authored Jan 20, 2025
1 parent b725e8d commit 0fba33a
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/gizmo/src/Group.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { BoundingBox, Entity, Matrix, ParticleRenderer, Renderer, Transform, Vector3 } from "@galacean/engine";
import { UITransform } from "@galacean/engine-ui";
import { BoundingBox, Entity, Matrix, ParticleRenderer, Renderer, Vector3 } from "@galacean/engine";
import { AnchorType, CoordinateType, SearchComponentType } from "./enums/GroupState";

/**
Expand Down Expand Up @@ -89,7 +88,7 @@ export class Group {
set searchComponentType(value: SearchComponentType) {
if (this._searchComponentType !== value) {
this._searchComponentType = value;
this._dirtyFlag & GroupDirtyFlag.AnchorDirty;
this.setDirtyFlagTrue(GroupDirtyFlag.AnchorDirty);
}
}

Expand Down Expand Up @@ -238,17 +237,6 @@ export class Group {
}
}

applyPivot(from: Vector3, to: Vector3): void {
const { _entities: entities } = this;
if (entities.length <= 0) {
return;
}
if (Vector3.equals(from, to)) {
return;
}
// update entities pivot
}

/**
* force update group dirty flag
* @param flag - group dirty flag
Expand Down

0 comments on commit 0fba33a

Please sign in to comment.