From 93eab4791d5f255312e6e624795da5147f467b89 Mon Sep 17 00:00:00 2001 From: Imbris Date: Thu, 9 Mar 2023 23:46:24 -0500 Subject: [PATCH] Remove ComponentKey TODO in Inventory::get_slot_of_item since item_definition_id contains component IDs! --- common/src/comp/inventory/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/src/comp/inventory/mod.rs b/common/src/comp/inventory/mod.rs index 6eed4ace70..f3bb929f4d 100644 --- a/common/src/comp/inventory/mod.rs +++ b/common/src/comp/inventory/mod.rs @@ -400,11 +400,6 @@ impl Inventory { self.slots_with_id() .find(|&(_, it)| { if let Some(it) = it { - if it.components().len() == item.components().len() { - // TODO: add a ComponentKey struct to compare components, see issue #1226 - debug_assert!(it.components().is_empty()); - debug_assert!(item.components().is_empty()); - } it.item_definition_id() == item.item_definition_id() } else { false