mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Remove unused EMPTY_QUERY table (#204)
Some checks failed
Some checks failed
This commit is contained in:
parent
a703e2c361
commit
b29f6c5037
1 changed files with 0 additions and 21 deletions
21
jecs.luau
21
jecs.luau
|
@ -1221,27 +1221,6 @@ end
|
||||||
|
|
||||||
local function NOOP() end
|
local function NOOP() end
|
||||||
|
|
||||||
local function ARM(query, ...)
|
|
||||||
return query
|
|
||||||
end
|
|
||||||
|
|
||||||
local EMPTY_LIST = {}
|
|
||||||
local EMPTY_QUERY = {
|
|
||||||
__iter = function()
|
|
||||||
return NOOP
|
|
||||||
end,
|
|
||||||
iter = function()
|
|
||||||
return NOOP
|
|
||||||
end,
|
|
||||||
with = ARM,
|
|
||||||
without = ARM,
|
|
||||||
archetypes = function()
|
|
||||||
return EMPTY_LIST
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
setmetatable(EMPTY_QUERY, EMPTY_QUERY)
|
|
||||||
|
|
||||||
type QueryInner = {
|
type QueryInner = {
|
||||||
compatible_archetypes: { Archetype },
|
compatible_archetypes: { Archetype },
|
||||||
ids: { i53 },
|
ids: { i53 },
|
||||||
|
|
Loading…
Reference in a new issue