remove unnecessary function and imports
This commit is contained in:
parent
5da7eeaae5
commit
effd541093
1 changed files with 2 additions and 9 deletions
11
src/query.js
11
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 { query as q } from './query-parser/index.js'
|
||||||
import { parseAll } from './parser.js'
|
import { parseAll } from './parser.js'
|
||||||
import { curry, of, is, reduce, flip, concat, map } from './fn.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
|
* necessary engine structure
|
||||||
|
@ -10,13 +10,6 @@ import { Edge, Node, Relationship } from './query-parser/types.js'
|
||||||
* Component: Component[]
|
* Component: Component[]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const isEmpty = obj => {
|
|
||||||
for (const _ in obj) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
const prepareQuery = (query, component) => {
|
const prepareQuery = (query, component) => {
|
||||||
const { match, returnValues } = query
|
const { match, returnValues } = query
|
||||||
const relationship = is(Relationship, match)
|
const relationship = is(Relationship, match)
|
||||||
|
|
Loading…
Reference in a new issue