Skip to content

Commit 17bdd95

Browse files
author
NonSwag
committed
removed unused method
1 parent 281c267 commit 17bdd95

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

api/src/main/java/net/thenextlvl/commander/api/command/PlatformCommandRegistry.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ default boolean isCommandRegistered(String literal) {
4040
return getCommand(literal).isPresent();
4141
}
4242

43-
/**
44-
* Check whether both commands match
45-
*
46-
* @param first the first command
47-
* @param second the second command
48-
* @return whether the commands match
49-
*/
50-
boolean matches(C first, C second);
51-
5243
/**
5344
* Update all commands
5445
*/

paper-plugin/src/main/java/net/thenextlvl/commander/implementation/command/CraftPlatformCommandRegistry.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ public Optional<Command> getCommand(String literal) {
3030
return Optional.ofNullable(Bukkit.getCommandMap().getCommand(literal));
3131
}
3232

33-
@Override
34-
public boolean matches(Command first, Command second) {
35-
if (first.equals(second)) return true;
36-
if (!first.getClass().equals(second.getClass())) return false;
37-
if (!first.getName().equals(second.getName())) return false;
38-
return first.getLabel().equals(second.getLabel());
39-
}
40-
4133
@Override
4234
public void updateCommands() {
4335
Bukkit.getOnlinePlayers().forEach(Player::updateCommands);

0 commit comments

Comments
 (0)