Removed unneeded method

This commit is contained in:
bm01 2012-06-10 06:57:55 +02:00
parent c9082083d1
commit 393ac886e2
2 changed files with 1 additions and 10 deletions

View File

@ -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);

View File

@ -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.
*