aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderDiscovery.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderDiscovery.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderDiscovery.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderDiscovery.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderDiscovery.java
index 8072e560d7..85f9238524 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderDiscovery.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderDiscovery.java
@@ -26,7 +26,6 @@ import com.google.devtools.build.lib.cmdline.RepositoryName;
import com.google.devtools.build.lib.collect.nestedset.NestedSet;
import com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder;
import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadCompatible;
-import com.google.devtools.build.lib.rules.cpp.CppCompileAction.SpecialInputsHandler;
import com.google.devtools.build.lib.vfs.FileSystemUtils;
import com.google.devtools.build.lib.vfs.Path;
import com.google.devtools.build.lib.vfs.PathFragment;
@@ -49,7 +48,6 @@ public class HeaderDiscovery {
private final Action action;
private final Artifact sourceFile;
- private final SpecialInputsHandler specialInputsHandler;
private final boolean shouldValidateInclusions;
private final Collection<Path> dependencies;
@@ -61,20 +59,17 @@ public class HeaderDiscovery {
*
* @param action the action instance requiring header discovery
* @param sourceFile the source file for the compile
- * @param specialInputsHandler the SpecialInputsHandler for the build
* @param shouldValidateInclusions true if include validation should be performed
*/
public HeaderDiscovery(
Action action,
Artifact sourceFile,
- SpecialInputsHandler specialInputsHandler,
boolean shouldValidateInclusions,
Collection<Path> dependencies,
List<Path> permittedSystemIncludePrefixes,
Map<PathFragment, Artifact> allowedDerivedInputsMap) {
this.action = Preconditions.checkNotNull(action);
this.sourceFile = Preconditions.checkNotNull(sourceFile);
- this.specialInputsHandler = specialInputsHandler;
this.shouldValidateInclusions = shouldValidateInclusions;
this.dependencies = dependencies;
this.permittedSystemIncludePrefixes = permittedSystemIncludePrefixes;
@@ -135,11 +130,6 @@ public class HeaderDiscovery {
}
if (artifact != null) {
inputs.add(artifact);
- // In some cases, execution backends need extra files for each included file. Add them
- // to the set of actual inputs.
- if (specialInputsHandler != null) {
- inputs.addAll(specialInputsHandler.getInputsForIncludedFile(artifact, artifactResolver));
- }
} else {
// Abort if we see files that we can't resolve, likely caused by
// undeclared includes or illegal include constructs.
@@ -156,7 +146,6 @@ public class HeaderDiscovery {
public static class Builder {
private Action action;
private Artifact sourceFile;
- private SpecialInputsHandler specialInputsHandler;
private boolean shouldValidateInclusions = false;
private Collection<Path> dependencies;
@@ -175,12 +164,6 @@ public class HeaderDiscovery {
return this;
}
- /** Sets the SpecialInputsHandler for inputs to this build. */
- public Builder setSpecialInputsHandler(SpecialInputsHandler specialInputsHandler) {
- this.specialInputsHandler = specialInputsHandler;
- return this;
- }
-
/** Sets that this compile should validate inclusions against the dotd file. */
public Builder shouldValidateInclusions() {
this.shouldValidateInclusions = true;
@@ -210,7 +193,6 @@ public class HeaderDiscovery {
return new HeaderDiscovery(
action,
sourceFile,
- specialInputsHandler,
shouldValidateInclusions,
dependencies,
permittedSystemIncludePrefixes,