diff options
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/genrule/GenRuleBase.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/genrule/GenRuleBase.java b/src/main/java/com/google/devtools/build/lib/rules/genrule/GenRuleBase.java index 7194640135..ecd7e71d34 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/genrule/GenRuleBase.java +++ b/src/main/java/com/google/devtools/build/lib/rules/genrule/GenRuleBase.java @@ -82,18 +82,6 @@ public abstract class GenRuleBase implements RuleConfiguredTargetFactory { } /** - * Returns an {@link Iterable} of {@link NestedSet}s, which will be added to the genrule's inputs - * using the {@link NestedSetBuilder#addTransitive} method. - * - * <p>GenRule implementations can override this method to better control what inputs are needed - * for specific command inputs. - */ - protected Iterable<NestedSet<Artifact>> getExtraInputArtifacts( - RuleContext ruleContext, String command) { - return ImmutableList.of(); - } - - /** * Returns {@code true} if the rule should be stamped. * * <p>Genrule implementations can set this based on the rule context, including by defining their @@ -207,10 +195,6 @@ public abstract class GenRuleBase implements RuleConfiguredTargetFactory { inputs.addTransitive(JavaHelper.getHostJavabaseInputs(ruleContext)); } - for (NestedSet<Artifact> extraInputs : getExtraInputArtifacts(ruleContext, baseCommand)) { - inputs.addTransitive(extraInputs); - } - if (isStampingEnabled(ruleContext)) { inputs.add(ruleContext.getAnalysisEnvironment().getStableWorkspaceStatusArtifact()); inputs.add(ruleContext.getAnalysisEnvironment().getVolatileWorkspaceStatusArtifact()); |