From 1b0a6bfcd8ba925a46c0abc0b6536872e1682178 Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 1 Jul 2014 12:56:27 -0700 Subject: [PATCH] Removed CommandCallable.getValueFlags(). Parsing of arguments is no longer done automatically so this method is extraneous. --- .../com/sk89q/worldedit/util/command/CommandCallable.java | 8 -------- .../sk89q/worldedit/util/command/SimpleDispatcher.java | 5 ----- .../util/command/parametric/ParametricCallable.java | 6 +++++- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/util/command/CommandCallable.java b/src/main/java/com/sk89q/worldedit/util/command/CommandCallable.java index 9a16a467c..3c75884c5 100644 --- a/src/main/java/com/sk89q/worldedit/util/command/CommandCallable.java +++ b/src/main/java/com/sk89q/worldedit/util/command/CommandCallable.java @@ -23,19 +23,11 @@ import com.sk89q.minecraft.util.commands.CommandException; import com.sk89q.minecraft.util.commands.CommandLocals; import java.util.List; -import java.util.Set; /** * A command that can be executed. */ public interface CommandCallable { - - /** - * Get a list of value flags used by this command. - * - * @return a list of value flags - */ - Set getValueFlags(); /** * Execute the correct command based on the input. diff --git a/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java b/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java index 86dbcc70a..ea027ec55 100644 --- a/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java +++ b/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java @@ -101,11 +101,6 @@ public class SimpleDispatcher implements Dispatcher { return commands.get(alias.toLowerCase()); } - @Override - public Set getValueFlags() { - return Collections.emptySet(); - } - @Override public boolean call(String arguments, CommandLocals locals, String[] parentCommands) throws CommandException { // We have permission for this command if we have permissions for subcommands diff --git a/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java b/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java index 7a657d848..6fc9266fe 100644 --- a/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java +++ b/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricCallable.java @@ -273,7 +273,11 @@ class ParametricCallable implements CommandCallable { return Collections.emptyList(); } - @Override + /** + * Get a list of value flags used by this command. + * + * @return a list of value flags + */ public Set getValueFlags() { return valueFlags; }