From c4766ad3fb7436465cf38b6ecff090ca7baac586 Mon Sep 17 00:00:00 2001 From: Grant Date: Mon, 24 Dec 2012 12:27:39 -0500 Subject: [PATCH] Remove dead code relating to null profiles. --- .../com/gmail/nossr50/commands/general/InspectCommand.java | 5 ----- .../com/gmail/nossr50/commands/general/MmoeditCommand.java | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java b/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java index 98518af14..5404ae1ef 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java @@ -51,11 +51,6 @@ public class InspectCommand implements CommandExecutor { PlayerProfile profile = new PlayerProfile(args[0], false); //Temporary Profile - if (profile == null) { - sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist")); - return true; - } - if (!profile.isLoaded()) { sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist")); return true; diff --git a/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java index bb276e5af..10ab914ac 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java @@ -100,11 +100,6 @@ public class MmoeditCommand implements CommandExecutor { else { profile = new PlayerProfile(args[0], false); //Temporary Profile - if (profile == null) { - sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist")); - return true; - } - if (!profile.isLoaded()) { sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist")); return true;