Skip to content

Commit

Permalink
Delete unused RuleContext.getPrerequisitesByConfiguration.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 512572877
Change-Id: I78ba03963eebc3e6f98f5f53f8ba0a0450026144
  • Loading branch information
aoeui authored and fweikert committed May 25, 2023
1 parent d26d9b1 commit 3c0eb42
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -957,23 +957,6 @@ ImmutableListMultimap<BuildConfigurationValue, C> getPrerequisitesByConfiguratio
return result.build();
}

/**
* For a given attribute, returns all {@link TransitiveInfoCollection}s provided by targets of
* that attribute. Each {@link TransitiveInfoCollection} is keyed by the {@link
* BuildConfigurationValue} under which the collection was created.
*/
public ImmutableListMultimap<BuildConfigurationValue, TransitiveInfoCollection>
getPrerequisitesByConfiguration(String attributeName) {
checkAttributeIsDependency(attributeName);
List<ConfiguredTargetAndData> ctatCollection = getPrerequisiteConfiguredTargets(attributeName);
ImmutableListMultimap.Builder<BuildConfigurationValue, TransitiveInfoCollection> result =
ImmutableListMultimap.builder();
for (ConfiguredTargetAndData prerequisite : ctatCollection) {
result.put(prerequisite.getConfiguration(), prerequisite.getConfiguredTarget());
}
return result.build();
}

/**
* Returns the list of transitive info collections that feed into this target through the
* specified attribute.
Expand Down

0 comments on commit 3c0eb42

Please sign in to comment.