Removed unused copy methods, no longer needed
This commit is contained in:
@@ -79,9 +79,4 @@ public class CommandContext<S> {
|
||||
return nodes;
|
||||
}
|
||||
|
||||
public CommandContext<S> copy() {
|
||||
final Map<String, ParsedArgument<S, ?>> arguments = Maps.newLinkedHashMap();
|
||||
this.arguments.forEach((k, v) -> arguments.put(k, v.copy()));
|
||||
return new CommandContext<>(source, arguments, command, nodes, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public class CommandContextBuilder<S> {
|
||||
public CommandContextBuilder<S> copy() {
|
||||
final CommandContextBuilder<S> copy = new CommandContextBuilder<>(dispatcher, source);
|
||||
copy.command = this.command;
|
||||
arguments.forEach((k, v) -> copy.arguments.put(k, v.copy()));
|
||||
copy.arguments.putAll(arguments);
|
||||
copy.nodes.putAll(this.nodes);
|
||||
copy.input.append(input);
|
||||
return copy;
|
||||
|
||||
@@ -37,7 +37,4 @@ public class ParsedArgument<S, T> {
|
||||
return result;
|
||||
}
|
||||
|
||||
public ParsedArgument<S, T> copy() {
|
||||
return new ParsedArgument<>(raw, result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user