diff options
author | 2016-08-19 12:22:17 +0000 | |
---|---|---|
committer | 2016-08-19 14:38:49 +0000 | |
commit | 621b7a35afdd9241c1b97230885eae3316f66733 (patch) | |
tree | 4f40033b2e396fdb28215d18dd6b606609625fa4 /src/main/java/com/google/devtools/build | |
parent | 9d9657b089bde11071d558e65f4b3b87d8a765d3 (diff) |
Drop BlazeModule.getOptionCategories, it's never used.
--
MOS_MIGRATED_REVID=130742362
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java | 10 | ||||
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java | 4 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java index 07da60c1f3..55e7440303 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java @@ -14,7 +14,6 @@ package com.google.devtools.build.lib.runtime; import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.actions.ActionContextConsumer; import com.google.devtools.build.lib.actions.ActionContextProvider; import com.google.devtools.build.lib.actions.ActionInputFileCache; @@ -42,7 +41,6 @@ import com.google.devtools.common.options.OptionsBase; import com.google.devtools.common.options.OptionsClassProvider; import com.google.devtools.common.options.OptionsProvider; import java.io.IOException; -import java.util.Map; import java.util.UUID; import javax.annotation.Nullable; @@ -217,14 +215,6 @@ public abstract class BlazeModule { } /** - * Returns a map of option categories to descriptive strings. This is used by {@code HelpCommand} - * to show a more readable list of flags. - */ - public Map<String, String> getOptionCategories() { - return ImmutableMap.of(); - } - - /** * Returns the additional information this module provides to "blaze info". * * <p>This method will be called at the beginning of each "blaze info" command (after diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java index 56de18ecce..702fefebd9 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/HelpCommand.java @@ -40,7 +40,6 @@ import com.google.devtools.common.options.Option; import com.google.devtools.common.options.OptionsBase; import com.google.devtools.common.options.OptionsParser; import com.google.devtools.common.options.OptionsProvider; - import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; @@ -136,9 +135,6 @@ public final class HelpCommand implements BlazeCommand { "Version options, for selecting which version of other tools will be used") .put("what", "Output selection options, for determining what to build/test"); - for (BlazeModule module : runtime.getBlazeModules()) { - optionCategoriesBuilder.putAll(module.getOptionCategories()); - } return optionCategoriesBuilder.build(); } |