Removed CommandUseTable#getCommandUse() - not used

This commit is contained in:
Rsl1122 2019-01-26 12:04:01 +02:00
parent 0fae44cc80
commit e309f83c3d
2 changed files with 2 additions and 11 deletions

View File

@ -103,15 +103,6 @@ public class CommandUseTable extends Table {
});
}
/**
* Used to get all commands used in this server.
*
* @return command - times used Map
*/
public Map<String, Integer> getCommandUse() {
return getCommandUse(getServerUUID());
}
public void commandUsed(String command) {
if (command.length() > 20) {
return;

View File

@ -172,7 +172,7 @@ public abstract class CommonDBTest {
commitTest();
Map<String, Integer> commandUse = db.getCommandUseTable().getCommandUse();
Map<String, Integer> commandUse = db.getCommandUseTable().getCommandUse(serverUUID);
assertEquals(expected, commandUse);
for (int i = 0; i < 3; i++) {
@ -186,7 +186,7 @@ public abstract class CommonDBTest {
expected.put("test", 3);
expected.put("tp", 6);
commandUse = db.getCommandUseTable().getCommandUse();
commandUse = db.getCommandUseTable().getCommandUse(serverUUID);
assertEquals(expected, commandUse);
}