remove unnecessary function and imports

This commit is contained in:
Rowan 2024-11-20 13:18:48 -06:00
parent 5da7eeaae5
commit effd541093

View file

@ -1,8 +1,8 @@
import { defineQuery, hasComponent, pipe } from 'bitecs'
import { defineQuery, hasComponent } from 'bitecs'
import { query as q } from './query-parser/index.js'
import { parseAll } from './parser.js'
import { curry, of, is, reduce, flip, concat, map } from './fn.js'
import { Edge, Node, Relationship } from './query-parser/types.js'
import { Relationship } from './query-parser/types.js'
/*
* necessary engine structure
@ -10,13 +10,6 @@ import { Edge, Node, Relationship } from './query-parser/types.js'
* Component: Component[]
*/
const isEmpty = obj => {
for (const _ in obj) {
return false
}
return true
}
const prepareQuery = (query, component) => {
const { match, returnValues } = query
const relationship = is(Relationship, match)