From 46c09cb8d23e2e0c9270c81a354cdaf0745e26c3 Mon Sep 17 00:00:00 2001 From: Brianna Date: Thu, 23 May 2019 23:28:57 -0400 Subject: [PATCH] Removed unused method. --- .../utils/settings/SettingsManager.java | 19 ------------------- 1 file changed, 19 deletions(-) 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();