diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/output/AspectResolver.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/query2/output/AspectResolver.java | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/output/AspectResolver.java b/src/main/java/com/google/devtools/build/lib/query2/output/AspectResolver.java index 2994aa004c..5d21322c1f 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/output/AspectResolver.java +++ b/src/main/java/com/google/devtools/build/lib/query2/output/AspectResolver.java @@ -21,7 +21,6 @@ import com.google.devtools.build.lib.packages.DependencyFilter; import com.google.devtools.build.lib.packages.Package; import com.google.devtools.build.lib.packages.Target; import com.google.devtools.build.lib.pkgcache.PackageProvider; -import java.util.Collection; import java.util.Set; /** Utility class that determines additional dependencies of a target from its aspects. */ @@ -63,28 +62,6 @@ public interface AspectResolver { PackageProvider provider, ExtendedEventHandler eventHandler); } - /** The way aspect dependencies for a BUILD file are calculated. */ - enum BuildFileDependencyMode { - - /** Return all the subincluded files that may affect the package. */ - SUBINCLUDE { - @Override - protected Collection<Label> getDependencies(Package pkg) { - return pkg.getSubincludeLabels(); - } - }, - - /** Return all Skylark files that may affect the package. */ - SKYLARK { - @Override - protected Collection<Label> getDependencies(Package pkg) { - return pkg.getSkylarkFileDependencies(); - } - }; - - protected abstract Collection<Label> getDependencies(Package pkg); - } - /** * Compute additional dependencies of target from aspects. This method may load the direct deps * of target to determine their types. Returns map of attributes and corresponding label values. @@ -94,9 +71,8 @@ public interface AspectResolver { throws InterruptedException; /** - * Compute the labels of the BUILD and subinclude and Skylark files on which the results of the - * other two methods depend for a target in the given package. + * Compute the labels of the BUILD Skylark files on which the results of the other two methods + * depend for a target in the given package. */ - Set<Label> computeBuildFileDependencies(Package pkg, BuildFileDependencyMode mode) - throws InterruptedException; + Set<Label> computeBuildFileDependencies(Package pkg) throws InterruptedException; } |