Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodBoyDigital committed May 1, 2024
1 parent c5683d4 commit 1995851
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
24 changes: 0 additions & 24 deletions src/scene/container/Container.ts
Expand Up @@ -796,30 +796,6 @@ export class Container<C extends ContainerChild = ContainerChild> extends EventE
parentRenderGroup.addChild(this);
}

// find children render groups and move them out..
// if (parentRenderGroup)
// {
// for (let i = 0; i < parentRenderGroup.renderGroupChildren.length; i++)
// {
// const childRenderGroup = parentRenderGroup.renderGroupChildren[i];
// let parent = childRenderGroup.root;

// while (parent)
// {
// if (parent === this)
// {
// this.renderGroup.addRenderGroupChild(childRenderGroup);

// break;
// }
// parent = parent.parent;
// }
// }

// parentRenderGroup.addRenderGroupChild(this.renderGroup);
// }

// parentRenderGroup.removeChild(this);
this._updateIsSimple();

// this group matrix will now forever be an identity matrix,
Expand Down
1 change: 0 additions & 1 deletion src/scene/container/RenderGroup.ts
Expand Up @@ -182,7 +182,6 @@ export class RenderGroup implements Instruction
{
child.parentRenderGroup._removeChildFromUpdate(child);
}
// child.renderGroup = null;
}
else
{
Expand Down

0 comments on commit 1995851

Please sign in to comment.