From 90d89a0ca160ec62685c8c76c042457381335968 Mon Sep 17 00:00:00 2001 From: Jens Johansen Date: Tue, 9 Jun 2026 05:25:53 -0700 Subject: [PATCH] [CFE] Remove unused enableUnscheduledExperiments Change-Id: I9d3b498ec0b4ae631cc2240dfad589166eae0c4b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510340 Commit-Queue: Jens Johansen Reviewed-by: Johnni Winther --- pkg/front_end/lib/src/api_prototype/compiler_options.dart | 5 ----- pkg/front_end/lib/src/base/command_line_options.dart | 6 ------ pkg/front_end/lib/src/base/processed_options.dart | 3 --- pkg/front_end/test/testing/folder_options.dart | 8 -------- pkg/front_end/test/testing/suite.dart | 2 -- .../testcases/unscheduled_experiments/folder.options | 1 - pkg/front_end/tool/command_line.dart | 5 ----- 7 files changed, 30 deletions(-) delete mode 100644 pkg/front_end/testcases/unscheduled_experiments/folder.options diff --git a/pkg/front_end/lib/src/api_prototype/compiler_options.dart b/pkg/front_end/lib/src/api_prototype/compiler_options.dart index 0040b7502bf..17341cad588 100644 --- a/pkg/front_end/lib/src/api_prototype/compiler_options.dart +++ b/pkg/front_end/lib/src/api_prototype/compiler_options.dart @@ -124,8 +124,6 @@ class CompilerOptions { Map? experimentEnabledVersionForTesting; Map? experimentReleasedVersionForTesting; - bool enableUnscheduledExperiments = false; - /// Environment map used when evaluating `bool.fromEnvironment`, /// `int.fromEnvironment` and `String.fromEnvironment` during constant /// evaluation. If the map is `null`, all environment constants will be left @@ -328,9 +326,6 @@ class CompilerOptions { if (currentSdkVersion != other.currentSdkVersion) return false; if (emitDeps != other.emitDeps) return false; if (!equalSets(invocationModes, other.invocationModes)) return false; - if (enableUnscheduledExperiments != other.enableUnscheduledExperiments) { - return false; - } return true; } diff --git a/pkg/front_end/lib/src/base/command_line_options.dart b/pkg/front_end/lib/src/base/command_line_options.dart index ed25e5795d8..f86d3b2959c 100644 --- a/pkg/front_end/lib/src/base/command_line_options.dart +++ b/pkg/front_end/lib/src/base/command_line_options.dart @@ -32,8 +32,6 @@ class Flags { static const String compileSdk = "--compile-sdk"; static const String dumpIr = "--dump-ir"; static const String enableExperiment = "--enable-experiment"; - static const String enableUnscheduledExperiments = - "--enable-unscheduled-experiments"; static const String excludeSource = "--exclude-source"; static const String omitPlatform = "--omit-platform"; static const String fatal = "--fatal"; @@ -75,10 +73,6 @@ class Options { Flags.enableExperiment, const StringListValue(), ); - static const Option enableUnscheduledExperiments = const Option( - Flags.enableUnscheduledExperiments, - const BoolValue(false), - ); static const Option excludeSource = const Option( Flags.excludeSource, const BoolValue(false), diff --git a/pkg/front_end/lib/src/base/processed_options.dart b/pkg/front_end/lib/src/base/processed_options.dart index 2313463d7f1..b2ddb169ca4 100644 --- a/pkg/front_end/lib/src/base/processed_options.dart +++ b/pkg/front_end/lib/src/base/processed_options.dart @@ -183,9 +183,6 @@ class ProcessedOptions { // Coverage-ignore(suite): Not run. bool get emitDeps => _raw.emitDeps; - // Coverage-ignore(suite): Not run. - bool get enableUnscheduledExperiments => _raw.enableUnscheduledExperiments; - bool get hasAdditionalDillModules => _raw.additionalDillModules.isNotEmpty; /// The entry-points provided to the compiler. diff --git a/pkg/front_end/test/testing/folder_options.dart b/pkg/front_end/test/testing/folder_options.dart index 31f591c0ffb..9890dcd2f2f 100644 --- a/pkg/front_end/test/testing/folder_options.dart +++ b/pkg/front_end/test/testing/folder_options.dart @@ -29,7 +29,6 @@ const Option withOutlineOption = const Option( const List