aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/packages
diff options
context:
space:
mode:
authorGravatar gregce <gregce@google.com>2017-09-11 21:50:09 +0200
committerGravatar Philipp Wollermann <philwo@google.com>2017-09-12 14:05:24 +0200
commitd24f3cbfc0b3102aaf550a282f26bc9c1ba073bf (patch)
tree712990998d077e9b6e31b7779e86d5c24094937e /src/main/java/com/google/devtools/build/lib/packages
parent4c4ce713c57d6b8850f6966be66567da194e4c25 (diff)
Remove outdated defaultsToSelf.
Part of the static config cleanup effort. PiperOrigin-RevId: 168270713
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/packages')
-rw-r--r--src/main/java/com/google/devtools/build/lib/packages/Attribute.java25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/packages/Attribute.java b/src/main/java/com/google/devtools/build/lib/packages/Attribute.java
index bd3605627f..85a0f25b99 100644
--- a/src/main/java/com/google/devtools/build/lib/packages/Attribute.java
+++ b/src/main/java/com/google/devtools/build/lib/packages/Attribute.java
@@ -151,14 +151,6 @@ public final class Attribute implements Comparable<Attribute> {
* A configuration transition.
*/
public interface Transition {
- /**
- * Usually, a non-existent entry in the configuration transition table indicates an error.
- * Unfortunately, that means that we need to always build the full table. This method allows a
- * transition to indicate that a non-existent entry indicates a self transition, i.e., that the
- * resulting configuration is the same as the current configuration. This can simplify the code
- * needed to set up the transition table.
- */
- boolean defaultsToSelf();
}
/**
@@ -199,22 +191,7 @@ public final class Attribute implements Comparable<Attribute> {
* Transition to one or more configurations. To obtain the actual child configurations,
* invoke {@link Attribute#getSplitTransition(Rule)}. See {@link SplitTransition}.
**/
- SPLIT(true);
-
- private final boolean defaultsToSelf;
-
- ConfigurationTransition() {
- this(false);
- }
-
- ConfigurationTransition(boolean defaultsToSelf) {
- this.defaultsToSelf = defaultsToSelf;
- }
-
- @Override
- public boolean defaultsToSelf() {
- return defaultsToSelf;
- }
+ SPLIT
}
private enum PropertyFlag {