chore: ded

This commit is contained in:
cha0s 2021-04-22 00:52:24 -05:00
parent b62f71bb3c
commit 8a004d67c0

View File

@ -138,31 +138,6 @@ export default (latus) => {
return this.#quadTree;
}
// queryEntities(query, condition, context) {
// if (!context) {
// // eslint-disable-next-line no-param-reassign
// context = new Context({}, latus);
// }
// const check = compile(condition, latus);
// const candidates = this.visibleEntities(query, true);
// const fails = [];
// for (let i = 0; i < candidates.length; ++i) {
// const entity = candidates[i];
// context.add('query', entity);
// if (!check(context)) {
// fails.push(entity);
// }
// }
// for (let i = 0; i < fails.length; ++i) {
// candidates.splice(candidates.indexOf(fails[i]), 1);
// }
// return candidates;
// }
// queryPoint(query, condition, context) {
// return this.queryEntities(Rectangle.centerOn(query, [1, 1]), condition, context);
// }
removeEntity(entity) {
const uuid = entity.instanceUuid;
if (!(uuid in this.#entities)) {