aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-12-10 09:57:52 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-12-10 12:41:36 +0000
commitcf87843c422e90930779f078ce6bb11217570190 (patch)
treececc8a0679bdcc8fbd308361ceb0b76e18219a6f /src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java
parent977316812543c64725beefc4d1f1c74cb1a870c0 (diff)
Now that external files are not always treated as immutable, eliminate the "overlaid BUILD files" hack in RepositoryValue.
-- MOS_MIGRATED_REVID=109877252
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java
index 7eb743f651..be8f883780 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupValue.java
@@ -13,7 +13,6 @@
// limitations under the License.
package com.google.devtools.build.lib.skyframe;
-import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.devtools.build.lib.cmdline.PackageIdentifier;
import com.google.devtools.build.lib.vfs.Path;
@@ -21,8 +20,6 @@ import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.skyframe.SkyKey;
import com.google.devtools.build.skyframe.SkyValue;
-import java.util.Objects;
-
/**
* A value that represents a package lookup result.
*
@@ -59,11 +56,6 @@ public abstract class PackageLookupValue implements SkyValue {
return new SuccessfulPackageLookupValue(root);
}
- public static PackageLookupValue overlaidBuildFile(
- Path root, Optional<FileValue> overlaidBuildFile) {
- return new OverlaidPackageLookupValue(root, overlaidBuildFile);
- }
-
public static PackageLookupValue workspace(Path root) {
return new WorkspacePackageLookupValue(root);
}
@@ -151,35 +143,6 @@ public abstract class PackageLookupValue implements SkyValue {
}
}
- /**
- * A package under external/ that has a BUILD file that is not under external/.
- *
- * <p>This is kind of a hack to get around our assumption that external/ is immutable.</p>
- */
- private static class OverlaidPackageLookupValue extends SuccessfulPackageLookupValue {
-
- private final Optional<FileValue> overlaidBuildFile;
-
- public OverlaidPackageLookupValue(Path root, Optional<FileValue> overlaidBuildFile) {
- super(root);
- this.overlaidBuildFile = overlaidBuildFile;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (!(obj instanceof OverlaidPackageLookupValue)) {
- return false;
- }
- OverlaidPackageLookupValue other = (OverlaidPackageLookupValue) obj;
- return super.equals(other) && overlaidBuildFile.equals(other.overlaidBuildFile);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(super.hashCode(), overlaidBuildFile);
- }
- }
-
// TODO(kchodorow): fix these semantics. This class should not exist, WORKSPACE lookup should
// just return success/failure like a "normal" package.
private static class WorkspacePackageLookupValue extends SuccessfulPackageLookupValue {