From e4f148999b7d23c051820c999c38c118ec61bf02 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Tue, 13 Sep 2022 16:19:54 -0400 Subject: [PATCH] Remove build failure with USE_BAZEL_ANALYSIS usage This verification was present to ensure that users previously using USE_BAZEL_ANALYSIS=1 realized the change in usage. But this is now dead code; USE_BAZEL_ANALYSIS=1 will be a complete no-op after this CL. Test: USE_BAZEL_ANALYSIS=1 m nothing (and verified this behaves as m nothing) Change-Id: I08f75a562c2fb3ce262646fb187f19f3d5857e40 --- ui/build/build.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ui/build/build.go b/ui/build/build.go index ff2d5f28d..387962b49 100644 --- a/ui/build/build.go +++ b/ui/build/build.go @@ -112,10 +112,6 @@ const ( // checkBazelMode fails the build if there are conflicting arguments for which bazel // build mode to use. func checkBazelMode(ctx Context, config Config) { - if config.Environment().IsEnvTrue("USE_BAZEL_ANALYSIS") { - ctx.Fatalln("USE_BAZEL_ANALYSIS is deprecated. Unset USE_BAZEL_ANALYSIS.\n" + - "Use --bazel-mode-dev instead. For example: `m --bazel-mode-dev nothing`") - } if config.bazelProdMode && config.bazelDevMode { ctx.Fatalln("Conflicting bazel mode.\n" + "Do not specify both --bazel-mode and --bazel-mode-dev")