Remove deprecated method: clear(CheckType)

This commit is contained in:
asofold 2017-04-08 00:49:00 +02:00
parent 4f1573c83d
commit 19e5e6f154

View File

@ -287,16 +287,6 @@ public class DataManager implements Listener, INeedConfig, ComponentRegistry<IRe
return removed;
}
/**
* Removes all data and history for a player.
*
* @deprecated Use clearData instead, this likely to be removed later.
* @param checkType
*/
public static void clear(final CheckType checkType) {
clearData(checkType);
}
/**
* Remove data and history of all players for the given check type and sub
* checks.
@ -332,6 +322,7 @@ public class DataManager implements Listener, INeedConfig, ComponentRegistry<IRe
}
ViolationHistory.clear(checkType);
if (checkType == CheckType.ALL) {
// TODO: Don't remove PlayerData for online players.
instance.playerData.clear(); // TODO
}
}
@ -444,6 +435,7 @@ public class DataManager implements Listener, INeedConfig, ComponentRegistry<IRe
}
if (checkType == CheckType.ALL) {
// TODO: Don't remove PlayerData for online players.
instance.playerData.remove(playerName.toLowerCase());
}