diff --git a/src/main/java/com/google/devtools/build/lib/actions/Artifact.java b/src/main/java/com/google/devtools/build/lib/actions/Artifact.java index efca8b05642d54..cf83f7b3fc7ec2 100644 --- a/src/main/java/com/google/devtools/build/lib/actions/Artifact.java +++ b/src/main/java/com/google/devtools/build/lib/actions/Artifact.java @@ -43,7 +43,6 @@ import com.google.devtools.build.lib.syntax.EvalUtils; import com.google.devtools.build.lib.syntax.EvalUtils.ComparisonException; import com.google.devtools.build.lib.util.FileType; -import com.google.devtools.build.lib.util.FileTypeSet; import com.google.devtools.build.lib.vfs.Path; import com.google.devtools.build.lib.vfs.PathFragment; import com.google.devtools.build.skyframe.SkyFunctionName; @@ -390,11 +389,6 @@ public boolean isFileType(FileType fileType) { return fileType.matches(this); } - /** Checks whether this artifact is any of the supplied file types. */ - public boolean isAnyFileType(FileTypeSet fileTypeSet) { - return fileTypeSet.matches(filePathForFileTypeMatcher()); - } - @Override public String filePathForFileTypeMatcher() { return getExecPath().filePathForFileTypeMatcher(); @@ -498,11 +492,6 @@ public boolean isConstantMetadata() { return false; } - /** Only callable if isSourceArtifact() is true. */ - public SourceArtifact asSourceArtifact() { - throw new IllegalStateException("Not a source artifact!"); - } - /** {@link Artifact#isSourceArtifact() is true. * *
Source artifacts have the property that unlike for output artifacts, direct file system
@@ -516,11 +505,6 @@ public SourceArtifact(ArtifactRoot root, PathFragment execPath, ArtifactOwner ow
super(root, execPath, owner);
}
- @Override
- public SourceArtifact asSourceArtifact() {
- return this;
- }
-
/**
* SourceArtifacts are compared without their owners, since owners do not affect behavior,
* unlike with derived artifacts, whose owners determine their generating actions.
@@ -830,16 +814,6 @@ static