From 5445cb79f7f7ade6b77abf79fddc29fa64d9855f Mon Sep 17 00:00:00 2001 From: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> Date: Sat, 8 Apr 2023 22:43:10 +0100 Subject: Kill disassembler (#594) Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> --- .../helpers/autocrafter/AC_Helper_Utils.java | 27 ---------------------- 1 file changed, 27 deletions(-) (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common/helpers') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java index 6a2175f151..3d54bcdf5f 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java @@ -24,17 +24,6 @@ public class AC_Helper_Utils { return 0; } - // Remove Crafter - public static final boolean removeCrafter(int frequency) { - if (!sAutocrafterMap.isEmpty()) { - if (sAutocrafterMap.containsKey(frequency)) { - sAutocrafterMap.remove(frequency); - return true; - } - } - return false; - } - public static final boolean removeCrafter(GT4Entity_AutoCrafter AC) { if (!sAutocrafterMap.isEmpty()) { if (sAutocrafterMap.containsValue(AC)) { @@ -45,22 +34,6 @@ public class AC_Helper_Utils { return false; } - // Get Crafter - public static final GT4Entity_AutoCrafter getCrafterByID(int ID) { - if (!sAutocrafterMap.isEmpty()) { - Set> players = sAutocrafterMap.entrySet(); - Iterator> i = players.iterator(); - while (i.hasNext()) { - Entry current = i.next(); - if (current.getKey().equals(ID)) { - return current.getValue(); - } - } - } - Logger.WARNING("Failed. [getCrafterByID]"); - return null; - } - public static final int getIDByCrafter(GT4Entity_AutoCrafter AC) { if (!sAutocrafterMap.isEmpty()) { Set> players = sAutocrafterMap.entrySet(); -- cgit