Remove some unused code from GenRuleBase
@@ -81,18 +81,6 @@ public abstract class GenRuleBase implements RuleConfiguredTargetFactory {
return ImmutableMap.of();
}
- /**
- * 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.
*
@@ -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());
