fix: removes

This commit is contained in:
cha0s 2021-02-09 16:31:28 -06:00
parent 525df7554c
commit d08475582b

View File

@ -65,17 +65,12 @@ export default class Quad {
remove(datum) {
if (this.hasChildren()) {
for (let i = 0; i < 4; ++i) {
if (this.quads[i].remove(datum)) {
return true;
}
this.quads[i].remove(datum);
}
return false;
}
if (this.data.has(datum)) {
this.data.delete(datum);
return true;
}
return false;
}
split() {