From d24f3cbfc0b3102aaf550a282f26bc9c1ba073bf Mon Sep 17 00:00:00 2001 From: gregce Date: Mon, 11 Sep 2017 21:50:09 +0200 Subject: Remove outdated defaultsToSelf. Part of the static config cleanup effort. PiperOrigin-RevId: 168270713 --- .../devtools/build/lib/packages/Attribute.java | 25 +--------------------- 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/packages') 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 { * 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 { * 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 { -- cgit v1.2.3