aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Michajlo Matijkiw <michajlo@google.com>2015-03-27 17:13:09 +0000
committerGravatar Ulf Adams <ulfjack@google.com>2015-03-30 12:17:58 +0000
commit18a50233cd1c900973218c4e81f9547bc8d7b658 (patch)
treec1c028177501945e5f9a32b5115309d51fca473b /src/main/java/com
parente3f04b8b80653541b2b903e5a90d072b0875d776 (diff)
remove unused method/vars/doc in ConfiguredTargetFunction
-- MOS_MIGRATED_REVID=89704303
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java
index 50154625fa..8b1b1bc194 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java
@@ -57,11 +57,9 @@ import com.google.devtools.build.skyframe.SkyValue;
import com.google.devtools.build.skyframe.ValueOrException2;
import com.google.devtools.build.skyframe.ValueOrException3;
-import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
-import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -190,7 +188,6 @@ final class ConfiguredTargetFunction implements SkyFunction {
* otherwise it's an asect)
* @param configConditions the configuration conditions for evaluating the attributes of the node
* @return an attribute -&gt; direct dependency multimap
- * @throws ConfiguredTargetFunctionException
*/
@Nullable
static ListMultimap<Attribute, ConfiguredTarget> computeDependencies(
@@ -276,7 +273,6 @@ final class ConfiguredTargetFunction implements SkyFunction {
for (Dependency dep : deps) {
SkyKey depKey = TO_KEYS.apply(dep);
ConfiguredTarget depConfiguredTarget = configuredTargetMap.get(depKey);
- List<AspectValue> aspects = new ArrayList<>();
for (Class<? extends ConfiguredAspectFactory> depAspect : dep.getAspects()) {
if (!aspectMatchesConfiguredTarget(depConfiguredTarget, depAspect)) {
continue;
@@ -320,50 +316,6 @@ final class ConfiguredTargetFunction implements SkyFunction {
}
/**
- * Returns which aspects are computable based on the precise set of providers direct dependencies
- * publish (and not the upper estimate in their rule definition).
- *
- * <p>An aspect is computable for a particular configured target if the configured target supplies
- * all the providers the aspect requires.
- *
- * @param upperEstimate a multimap from attribute to the upper estimates computed by
- * {@link com.google.devtools.build.lib.analysis.DependencyResolver}.
- * @param configuredTargetDeps a multimap from attribute to the directly dependent configured
- * targets
- * @return a multimap from attribute to the more precise {@link Dependency} objects
- */
- private static ListMultimap<Attribute, Dependency> getComputableAspects(
- ListMultimap<Attribute, Dependency> upperEstimate,
- Map<SkyKey, ConfiguredTarget> configuredTargetDeps) {
- ListMultimap<Attribute, Dependency> result = ArrayListMultimap.create();
- for (Map.Entry<Attribute, Dependency> entry : upperEstimate.entries()) {
- ConfiguredTarget dep =
- configuredTargetDeps.get(TO_KEYS.apply(entry.getValue()));
- List<Class<? extends ConfiguredAspectFactory>> depAspects = new ArrayList<>();
- for (Class<? extends ConfiguredAspectFactory> candidate : entry.getValue().getAspects()) {
- boolean ok = true;
- for (Class<?> requiredProvider :
- AspectFactory.Util.create(candidate).getDefinition().getRequiredProviders()) {
- if (dep.getProvider((Class<? extends TransitiveInfoProvider>) requiredProvider) == null) {
- ok = false;
- break;
- }
- }
-
- if (ok) {
- depAspects.add(candidate);
- }
- }
-
- result.put(entry.getKey(), new Dependency(
- entry.getValue().getLabel(), entry.getValue().getConfiguration(),
- ImmutableSet.copyOf(depAspects)));
- }
-
- return result;
- }
-
- /**
* Returns the set of {@link ConfigMatchingProvider}s that key the configurable attributes
* used by this rule.
*