From 2a6347dc555dcef80b7a52511b601e8b8977b80d Mon Sep 17 00:00:00 2001 From: rdbtCVS <87152661+rdbtCVS@users.noreply.github.com> Date: Sat, 24 Oct 2026 23:25:01 +0100 Subject: [PATCH] Remove unused saved-chunk section loader Co-Authored-By: OpenAI Codex --- crates/horizon-world/src/chunk.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/crates/horizon-world/src/chunk.rs b/crates/horizon-world/src/chunk.rs index fdbefe259..74a2011db 100644 --- a/crates/horizon-world/src/chunk.rs +++ b/crates/horizon-world/src/chunk.rs @@ -318,23 +318,6 @@ impl ChunkData { )?)) } - pub fn load_block_section<'r>( - &self, - block: BlockPos, - registry: &'r BlockRegistry, - ) -> io::Result>> { - let Some(index) = self.section_index(block)? else { - return Ok(None); - }; - let Tag::List(sections) = self.root.tag.get("sections").unwrap() else { - unreachable!() - }; - sections[index] - .get("block_states") - .map(|tag| BlockSection::from_nbt(tag, registry)) - .transpose() - } - /// Storage-only mutation. The caller must arrange simulation-derived updates /// before treating this as a gameplay block placement. pub fn set_block_data(&mut self, block: BlockPos, state: BlockState) -> io::Result {