diff options
author | 2017-08-18 20:36:14 +0200 | |
---|---|---|
committer | 2017-08-21 14:15:58 +0200 | |
commit | 8158a286a8e72ec3f5259d155f6856fea9d07fea (patch) | |
tree | 281b31f216009efb59fa0d5a14001e7c8242e8b8 /src/main/java/com/google/devtools | |
parent | f3ec180d0373289b25d96c9d00d2d2d027ae147d (diff) |
Remove CustomArgv. It is unused.
PiperOrigin-RevId: 165731260
Diffstat (limited to 'src/main/java/com/google/devtools')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java index 008f7defc2..02998a11c4 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java @@ -76,24 +76,11 @@ public final class CustomCommandLine extends CommandLine { abstract void eval(ImmutableList.Builder<String> builder); } - // TODO(bazel-team): CustomArgv and CustomMultiArgv is going to be difficult to expose + // TODO(bazel-team): CustomMultiArgv is going to be difficult to expose // in Skylark. Maybe we can get rid of them by refactoring JavaCompileAction. It also // raises immutability / serialization issues. - /** Custom Java code producing a String argument. Usage of this class is discouraged. */ - public abstract static class CustomArgv extends StandardArgvFragment { - - @Override - void eval(ImmutableList.Builder<String> builder) { - builder.add(argv()); - } - - public abstract String argv(); - } - /** * Custom Java code producing a List of String arguments. - * - * <p>Usage of this class is discouraged. Please see {@link CustomArgv}. */ public abstract static class CustomMultiArgv extends StandardArgvFragment { @@ -828,13 +815,6 @@ public final class CustomCommandLine extends CommandLine { return this; } - public Builder addCustomArgv(@Nullable CustomArgv arg) { - if (arg != null) { - arguments.add(arg); - } - return this; - } - public Builder addCustomMultiArgv(@Nullable CustomMultiArgv arg) { if (arg != null) { arguments.add(arg); |