mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-14 12:10:23 +07:00
remove some unused code
This commit is contained in:
22
evolved.lua
22
evolved.lua
@@ -726,12 +726,6 @@ local __DESTRUCTION_POLICY_REMOVE_FRAGMENT = __acquire_id()
|
||||
---
|
||||
|
||||
local __safe_tbls = {
|
||||
---@type evolved.entity[]
|
||||
__EMPTY_ENTITY_LIST = __lua_setmetatable({}, {
|
||||
__tostring = function() return 'empty entity list' end,
|
||||
__newindex = function() __error_fmt 'attempt to modify empty entity list' end
|
||||
}),
|
||||
|
||||
---@type table<evolved.fragment, integer>
|
||||
__EMPTY_FRAGMENT_SET = __lua_setmetatable({}, {
|
||||
__tostring = function() return 'empty fragment set' end,
|
||||
@@ -872,14 +866,6 @@ end
|
||||
|
||||
local __debug_fns = {}
|
||||
|
||||
---@param chunk evolved.chunk
|
||||
function __debug_fns.validate_chunk(chunk)
|
||||
if chunk.__unreachable_or_collected then
|
||||
__error_fmt('the chunk (%s) is unreachable or collected and cannot be used',
|
||||
chunk)
|
||||
end
|
||||
end
|
||||
|
||||
---@param entity evolved.entity
|
||||
function __debug_fns.validate_entity(entity)
|
||||
local entity_index = entity % 0x100000
|
||||
@@ -924,14 +910,6 @@ function __debug_fns.validate_fragments(...)
|
||||
end
|
||||
end
|
||||
|
||||
---@param fragment_list evolved.fragment[]
|
||||
---@param fragment_count integer
|
||||
function __debug_fns.validate_fragment_list(fragment_list, fragment_count)
|
||||
for i = 1, fragment_count do
|
||||
__debug_fns.validate_fragment(fragment_list[i])
|
||||
end
|
||||
end
|
||||
|
||||
---@param components table<evolved.fragment, evolved.component>
|
||||
function __debug_fns.validate_component_map(components)
|
||||
for fragment in __lua_next, components do
|
||||
|
||||
Reference in New Issue
Block a user