mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-30 16:19:56 +08:00
Removed CommandUseTable#getCommandUse() - not used
This commit is contained in:
parent
0fae44cc80
commit
e309f83c3d
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user