From b3fa312cebc0192d72817fc8f941f6ef61b83f18 Mon Sep 17 00:00:00 2001 From: asofold Date: Tue, 27 Jan 2015 12:51:05 +0100 Subject: [PATCH] Remove several deprecated interfaces and methods. --- .../fr/neatmonster/nocheatplus/checks/CheckType.java | 11 ----------- .../nocheatplus/command/INotifyReload.java | 10 ---------- .../neatmonster/nocheatplus/config/INeedConfig.java | 11 ----------- 3 files changed, 32 deletions(-) delete mode 100644 NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/INotifyReload.java delete mode 100644 NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/INeedConfig.java diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/CheckType.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/CheckType.java index 7b95d612..175c32c2 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/CheckType.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/CheckType.java @@ -21,7 +21,6 @@ import fr.neatmonster.nocheatplus.checks.inventory.InventoryData; import fr.neatmonster.nocheatplus.checks.moving.MovingConfig; import fr.neatmonster.nocheatplus.checks.moving.MovingData; import fr.neatmonster.nocheatplus.permissions.Permissions; -import fr.neatmonster.nocheatplus.players.DataManager; /** * Type of checks (containing configuration and dataFactory classes, name and permission). @@ -234,14 +233,4 @@ public enum CheckType { return configFactory.getConfig(player).isEnabled(this); } - /** - * Remove the player data for a given player and a given check type. CheckType.ALL and null will be interpreted as removing all data.
- * @deprecated Will be removed, use DataManager.removeData instead. - * @param playerName - * @param checkType - * @return If any data was present. - */ - public static boolean removeData(final String playerName, final CheckType checkType) { - return DataManager.removeData(playerName, checkType); - } } \ No newline at end of file diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/INotifyReload.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/INotifyReload.java deleted file mode 100644 index d7b91b70..00000000 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/INotifyReload.java +++ /dev/null @@ -1,10 +0,0 @@ -package fr.neatmonster.nocheatplus.command; - -/** - * @deprecated Use instead: fr.neatmonster.nocheatplus.components.INotifyReload - * @author mc_dev - * - */ -public interface INotifyReload extends fr.neatmonster.nocheatplus.components.INotifyReload { - -} diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/INeedConfig.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/INeedConfig.java deleted file mode 100644 index 026fd973..00000000 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/INeedConfig.java +++ /dev/null @@ -1,11 +0,0 @@ -package fr.neatmonster.nocheatplus.config; - - -/** - * Indicate that an instance needs config after time of creation but in onEnable. - * @deprecated Use instead: fr.neatmonster.nocheatplus.components.INeedConfig - * @author mc_dev - * - */ -public interface INeedConfig extends fr.neatmonster.nocheatplus.components.INeedConfig{ -}