From 7f6909e48cbe27ff26ee44bb04759fc69409c169 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Sat, 20 Sep 2025 01:53:29 +0700 Subject: [PATCH] remove some unused code about pinned chunks --- evolved.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/evolved.lua b/evolved.lua index c0481f8..4edfc9f 100644 --- a/evolved.lua +++ b/evolved.lua @@ -125,8 +125,6 @@ local __root_chunks = {} ---@type table local __major_chunks = {} ---@type table> local __minor_chunks = {} ---@type table> -local __pinned_chunks = {} ---@type table - local __entity_chunks = {} ---@type table local __entity_places = {} ---@type table @@ -5910,16 +5908,12 @@ function __evolved_collect_garbage() for postorder_chunk_index = postorder_chunk_stack_size, 1, -1 do local postorder_chunk = postorder_chunk_stack[postorder_chunk_index] - local postorder_chunk_pins = __pinned_chunks[postorder_chunk] or 0 - - local is_not_pinned = - postorder_chunk_pins == 0 local should_be_purged = postorder_chunk.__child_count == 0 and postorder_chunk.__entity_count == 0 - if is_not_pinned and should_be_purged then + if should_be_purged then __purge_chunk(postorder_chunk) end end