refactor: unnecessary lookup

This commit is contained in:
cha0s 2019-03-23 23:06:01 -05:00
parent 49b36dabe6
commit 78bc85be49

View File

@ -71,8 +71,8 @@ export class Listed extends Trait {
if (!list) {
return;
}
const quadTree = list.quadTree();
if (this.quadTreeNodes) {
const quadTree = list.quadTree();
for (const node of this.quadTreeNodes) {
quadTree.remove(node);
}