From fb831002e9398724feaa35e545cdf072007c95c8 Mon Sep 17 00:00:00 2001 From: Luca Di Grazia Date: Sun, 4 Sep 2022 20:06:15 +0200 Subject: [PATCH] Remove isTargetExplicit check -- now that filtering exists, only actual platform/toolchain targets will actually get into those lists. RELNOTES: None PiperOrigin-RevId: 241788572 --- .../RegisteredExecutionPlatformsFunction.java | 30 +++++-------------- .../RegisteredToolchainsFunction.java | 28 ----------------- 2 files changed, 7 insertions(+), 51 deletions(-) diff --git a/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/RegisteredExecutionPlatformsFunction.java b/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/RegisteredExecutionPlatformsFunction.java index d6b64bde211..9348cecf1d0 100644 --- a/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/RegisteredExecutionPlatformsFunction.java +++ b/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/RegisteredExecutionPlatformsFunction.java @@ -14,8 +14,6 @@ package com.google.devtools.build.lib.skyframe; -import static com.google.common.base.Predicates.equalTo; -import static com.google.common.base.Predicates.not; import static com.google.common.collect.ImmutableList.toImmutableList; import com.google.auto.value.AutoValue; @@ -94,8 +92,7 @@ public SkyValue compute(SkyKey skyKey, Environment env) // Load the configured target for each, and get the declared execution platforms providers. ImmutableList registeredExecutionPlatformKeys = - configureRegisteredExecutionPlatforms( - env, configuration, configuration.trimConfigurationsRetroactively(), platformLabels); + configureRegisteredExecutionPlatforms(env, configuration, platformLabels); if (env.valuesMissing()) { return null; } @@ -125,7 +122,6 @@ public static List getWorkspaceExecutionPlatforms(Environment env) private ImmutableList configureRegisteredExecutionPlatforms( Environment env, BuildConfiguration configuration, - boolean sanityCheckConfiguration, List