From 98d0cc1a238de319e4ed007054b5ddd011a62fa0 Mon Sep 17 00:00:00 2001 From: Bafran Date: Sat, 28 Dec 2024 20:18:26 -0800 Subject: [PATCH] Remove unused function --- pumpkin-inventory/src/player.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pumpkin-inventory/src/player.rs b/pumpkin-inventory/src/player.rs index f6bccbb6..f406ba5a 100644 --- a/pumpkin-inventory/src/player.rs +++ b/pumpkin-inventory/src/player.rs @@ -116,11 +116,6 @@ impl PlayerInventory { &mut self.items[self.selected + 36 - 9] } - pub fn set_held_item(&mut self, item: Option) { - debug_assert!((0..9).contains(&self.selected)); - self.items[self.selected + 36 - 9] = item; - } - pub fn get_slot_with_item(&self, item_id: u16) -> Option { for slot in 9..=44 { match &self.items[slot - 9] {