Skip to content

Commit

Permalink
Delete array_a reset. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
caryliu1999 committed Jun 9, 2021
1 parent 7a26531 commit a8c6297
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cocos/core/scene-graph/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,6 @@ export class Node extends BaseNode {
const childDirtyBit = dirtyBit | TransformBit.POSITION;
array_a[0] = this;

// we need to recursively iterate this
// eslint-disable-next-line @typescript-eslint/no-this-alias
let i = 0;
while (i >= 0) {
const cur: this = array_a[i--];
Expand All @@ -650,7 +648,6 @@ export class Node extends BaseNode {
}
dirtyBit = childDirtyBit;
}
array_a.length = 0;
}

/**
Expand Down Expand Up @@ -713,7 +710,6 @@ export class Node extends BaseNode {
child._dirtyFlags = TransformBit.NONE;
cur = child;
}
array_a.length = 0;
}

// ===============================
Expand Down

0 comments on commit a8c6297

Please sign in to comment.