From 393ac886e26669ca9e33092608db8d852c2fbd32 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sun, 10 Jun 2012 06:57:55 +0200 Subject: [PATCH] Removed unneeded method --- .../com/gmail/nossr50/commands/mc/McremoveCommand.java | 2 +- src/main/java/com/gmail/nossr50/util/Users.java | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java b/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java index f8a0b0b8e..c5739abe0 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java @@ -102,7 +102,7 @@ public class McremoveCommand implements CommandExecutor { PlayerProfile playerProfile = Users.getProfile(player); if (playerProfile != null) { - Users.removeUser(playerProfile); + Users.getProfiles().remove(playerProfile); if (player.isOnline()) { Users.addUser((Player) player); diff --git a/src/main/java/com/gmail/nossr50/util/Users.java b/src/main/java/com/gmail/nossr50/util/Users.java index 3aba3a6b7..693a53c2c 100644 --- a/src/main/java/com/gmail/nossr50/util/Users.java +++ b/src/main/java/com/gmail/nossr50/util/Users.java @@ -97,15 +97,6 @@ public class Users { } } - /** - * Remove a user from the DB by its profile. - * - * @param playerProfile the profile of the player to remove - */ - public static void removeUser(PlayerProfile playerProfile) { - profiles.remove(playerProfile); - } - /** * Get the profile of a player. *