From 4eea2c4e4fe8b20effc7c8f58bbc7aca61d1460f Mon Sep 17 00:00:00 2001 From: Mads Boddum Date: Sat, 26 Sep 2015 03:37:22 +0200 Subject: [PATCH] Removed all SUI-related methods from the IntentFactory since they don't make anything easier and don't fit in with the other methods in the class --- src/utilities/IntentFactory.java | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/utilities/IntentFactory.java b/src/utilities/IntentFactory.java index e90d4df35..55c25a9f1 100644 --- a/src/utilities/IntentFactory.java +++ b/src/utilities/IntentFactory.java @@ -121,34 +121,4 @@ public final class IntentFactory { new PersistentMessageIntent(receiver, mail, receiver.getOwner().getGalaxyName()).broadcast(); } - /** - * Displays the provided {@link SuiWindow} to the player. - *

- * This is the same as calling suiWindow.display(player) - * @param player Player to be shown the {@link SuiWindow}. - * @param suiWindow {@link SuiWindow} to be shown - */ - public void showSuiWindow(Player player, SuiWindow suiWindow) { - suiWindow.display(player); - } - - /** - * Closes a currently opened window on the client with the id of the SUI Window. - *

- * This is the same as calling suiWindow.close(player); - * @param player Player that has the window to be closed - * @param suiWindow {@link SuiWindow} to be closed - */ - public void closeSuiWindow(Player player, SuiWindow suiWindow) { - suiWindow.close(player); - } - - /** - * Closes a currently opened window on the client with the id of the SUI Window - * @param player Player that has the window to be closed - * @param windowId Window id of the {@link SuiWindow} to close - */ - public void closeSuiWindow(Player player, int windowId) { - new SuiWindowIntent(player, null, windowId, SuiWindowIntent.SuiWindowEvent.CLOSE).broadcast(); - } }