From 86fb78e34c8744320ce54bd006ab13c7ef334cf5 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Fri, 31 Oct 2014 23:32:59 -0700 Subject: [PATCH] minor Unused code cleanup --- .../mineplex/core/account/repository/AccountRepository.java | 1 - .../src/mineplex/core/database/DatabaseManager.java | 6 ------ Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java | 5 ----- .../src/mineplex/core/npc/command/AddCommand.java | 1 - 4 files changed, 13 deletions(-) delete mode 100644 Plugins/Mineplex.Core/src/mineplex/core/database/DatabaseManager.java diff --git a/Plugins/Mineplex.Core/src/mineplex/core/account/repository/AccountRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/account/repository/AccountRepository.java index e817b653e..639bc89fd 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/account/repository/AccountRepository.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/account/repository/AccountRepository.java @@ -6,7 +6,6 @@ import java.util.UUID; import org.bukkit.craftbukkit.libs.com.google.gson.reflect.TypeToken; import org.bukkit.plugin.Plugin; -import org.bukkit.plugin.java.JavaPlugin; import mineplex.core.account.repository.token.LoginToken; import mineplex.core.account.repository.token.RankUpdateToken; diff --git a/Plugins/Mineplex.Core/src/mineplex/core/database/DatabaseManager.java b/Plugins/Mineplex.Core/src/mineplex/core/database/DatabaseManager.java deleted file mode 100644 index 9931f3ff9..000000000 --- a/Plugins/Mineplex.Core/src/mineplex/core/database/DatabaseManager.java +++ /dev/null @@ -1,6 +0,0 @@ -package mineplex.core.database; - -public class DatabaseManager -{ - -} diff --git a/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java b/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java index 6d7718266..cdd86d982 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java @@ -1,7 +1,6 @@ package mineplex.core.npc; import java.sql.Connection; -import java.sql.DriverManager; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; @@ -39,7 +38,6 @@ import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDeathEvent; import org.bukkit.event.entity.EntityTargetEvent; import org.bukkit.event.player.PlayerInteractEntityEvent; -import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.event.world.ChunkLoadEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.plugin.java.JavaPlugin; @@ -104,7 +102,6 @@ public class NpcManager extends MiniPlugin private final List _npcs = new ArrayList<>(); final Map _npcMap = new HashMap<>(); private final Set _npcDeletingPlayers = new HashSet<>(); - private Connection _connection; public NpcManager(JavaPlugin plugin, Creature creature) { @@ -597,8 +594,6 @@ public class NpcManager extends MiniPlugin if (event.getType() != UpdateType.TICK) return; - long now = System.currentTimeMillis(); - for (Player player : Bukkit.getOnlinePlayers()) { for (Npc npc : _npcs) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/npc/command/AddCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/npc/command/AddCommand.java index e07beb03b..08beeb4fe 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/npc/command/AddCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/npc/command/AddCommand.java @@ -2,7 +2,6 @@ package mineplex.core.npc.command; import java.sql.SQLException; -import org.bukkit.ChatColor; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player;