diff --git a/src/main/java/com/songoda/epicheads/utils/settings/SettingsManager.java b/src/main/java/com/songoda/epicheads/utils/settings/SettingsManager.java index 1c00bb3..3147bce 100644 --- a/src/main/java/com/songoda/epicheads/utils/settings/SettingsManager.java +++ b/src/main/java/com/songoda/epicheads/utils/settings/SettingsManager.java @@ -33,25 +33,6 @@ public class SettingsManager implements Listener { Bukkit.getPluginManager().registerEvents(this, plugin); } - public static void add(LinkedHashMap map, int index, K key, V value) { - assert (map != null); - assert !map.containsKey(key); - assert (index >= 0) && (index < map.size()); - - int i = 0; - List> rest = new ArrayList<>(); - for (Map.Entry entry : map.entrySet()) { - if (i++ >= index) { - rest.add(entry); - } - } - map.put(key, value); - for (Map.Entry entry : rest) { - map.remove(entry.getKey()); - map.put(entry.getKey(), entry.getValue()); - } - } - @EventHandler public void onInventoryClick(InventoryClickEvent event) { ItemStack clickedItem = event.getCurrentItem();