From a703e2c3615a9eabfd1e3f0a6be9667041dbe7fe Mon Sep 17 00:00:00 2001 From: lolmanurfunny <77128366+lolmanurfunny@users.noreply.github.com> Date: Thu, 6 Mar 2025 20:16:49 -0500 Subject: [PATCH 1/2] Remove redundant check in entity_index_try_get_any (#203) --- jecs.luau | 3 --- 1 file changed, 3 deletions(-) diff --git a/jecs.luau b/jecs.luau index e53d366..9433147 100644 --- a/jecs.luau +++ b/jecs.luau @@ -172,9 +172,6 @@ end local function entity_index_try_get_any(entity_index: EntityIndex, entity: number): Record? local r = entity_index.sparse_array[ECS_ENTITY_T_LO(entity)] - if not r then - return nil - end if not r or r.dense == 0 then return nil From b29f6c5037d267ae2992db65da40faf7aaf70a48 Mon Sep 17 00:00:00 2001 From: lolmanurfunny <77128366+lolmanurfunny@users.noreply.github.com> Date: Fri, 7 Mar 2025 13:54:44 -0500 Subject: [PATCH 2/2] Remove unused EMPTY_QUERY table (#204) --- jecs.luau | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/jecs.luau b/jecs.luau index 9433147..26baf7f 100644 --- a/jecs.luau +++ b/jecs.luau @@ -1221,27 +1221,6 @@ 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 = { compatible_archetypes: { Archetype }, ids: { i53 },