diff --git a/src/query.js b/src/query.js index f12fbec..e8ef8f5 100644 --- a/src/query.js +++ b/src/query.js @@ -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)