From 3e71cf4b4592cc72ad5390ab54a05739058feed6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 18 Mar 2024 06:57:39 -0400 Subject: [PATCH] Unused junk removed --- src/engine/objects/ItemBase.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/engine/objects/ItemBase.java b/src/engine/objects/ItemBase.java index c2833448..6692525c 100644 --- a/src/engine/objects/ItemBase.java +++ b/src/engine/objects/ItemBase.java @@ -23,11 +23,8 @@ public class ItemBase { public static ItemBase GOLD_ITEM_BASE = null; public static HashMap _itemBaseByUUID = new HashMap<>(); - private static final HashMap itemHashIDMap = new HashMap<>(); - private static final HashMap _IDsByNames = new HashMap<>(); - private static final ArrayList _resourceList = new ArrayList<>(); - public final int uuid; + public final int uuid; private final int modTable; private final short percentRequired; private final short defense; @@ -67,15 +64,10 @@ public class ItemBase { _itemBaseByUUID.put(itemBase.uuid, itemBase); - if (ItemTemplate.templates.get(itemBase.uuid).item_type.equals(ItemType.RESOURCE)) - _resourceList.add(itemBase); - ItemTemplate template = ItemTemplate.templates.get(itemBase.uuid); if (template == null) Logger.error("Null template for: " + itemBase.uuid); - else - _IDsByNames.put(template.item_base_name.toLowerCase().replace(" ", "_"), itemBase.uuid); } public static ItemBase getItemBase(int uuid) {