From b9c0bf270f60369542a2f70cb27af83c5a38f41c Mon Sep 17 00:00:00 2001 From: Brokkonaut Date: Wed, 9 Jan 2019 04:06:29 +0100 Subject: [PATCH] Cleanup unused code --- .../ChestShop/Containers/AdminInventory.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Containers/AdminInventory.java b/src/main/java/com/Acrobot/ChestShop/Containers/AdminInventory.java index cefbd5eda..377104e97 100644 --- a/src/main/java/com/Acrobot/ChestShop/Containers/AdminInventory.java +++ b/src/main/java/com/Acrobot/ChestShop/Containers/AdminInventory.java @@ -105,18 +105,7 @@ public boolean containsAtLeast(ItemStack itemStack, int i) { @Override public HashMap all(Material material) { - HashMap items = new HashMap(); - if (material.getMaxDurability() != 0) { - - for (short currentDurability = 0; currentDurability < material.getMaxDurability(); currentDurability++) { - items.put((int) currentDurability, new ItemStack(material, Integer.MAX_VALUE, currentDurability)); - } - - return items; - } else { - items.put(1, new ItemStack(material, Integer.MAX_VALUE)); - } - return items; + return new HashMap(); } @Override