[CFE] Remove unused enableUnscheduledExperiments

Change-Id: I9d3b498ec0b4ae631cc2240dfad589166eae0c4b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510340
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
Jens Johansen
2026-06-09 05:25:53 -07:00
committed by dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent bf82bf3d38
commit 90d89a0ca1
7 changed files with 0 additions and 30 deletions
@@ -124,8 +124,6 @@ class CompilerOptions {
Map<ExperimentalFlag, Version>? experimentEnabledVersionForTesting;
Map<ExperimentalFlag, Version>? 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;
}
@@ -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<bool> enableUnscheduledExperiments = const Option(
Flags.enableUnscheduledExperiments,
const BoolValue(false),
);
static const Option<bool> excludeSource = const Option(
Flags.excludeSource,
const BoolValue(false),
@@ -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.
@@ -29,7 +29,6 @@ const Option<bool> withOutlineOption = const Option(
const List<Option> folderOptionsSpecification = [
Options.enableExperiment,
Options.enableUnscheduledExperiments,
Options.forceLateLoweringSentinel,
overwriteCurrentSdkVersion,
Options.forceLateLowering,
@@ -54,7 +53,6 @@ class SuiteFolderOptions {
FolderOptions _computeFolderOptions(Directory directory) {
FolderOptions? folderOptions = _folderOptions[directory.uri];
if (folderOptions == null) {
bool? enableUnscheduledExperiments;
int? forceLateLowering;
bool? forceLateLoweringSentinel;
bool? forceStaticFieldLowering;
@@ -69,7 +67,6 @@ class SuiteFolderOptions {
if (directory.uri == baseUri) {
folderOptions = new FolderOptions(
{},
enableUnscheduledExperiments: enableUnscheduledExperiments,
forceLateLowerings: forceLateLowering,
forceLateLoweringSentinel: forceLateLoweringSentinel,
forceStaticFieldLowering: forceStaticFieldLowering,
@@ -97,8 +94,6 @@ class SuiteFolderOptions {
Options.enableExperiment.read(parsedOptions) ?? <String>[];
String? overwriteCurrentSdkVersionArgument =
overwriteCurrentSdkVersion.read(parsedOptions);
enableUnscheduledExperiments = Options.enableUnscheduledExperiments
.read(parsedOptions);
forceLateLoweringSentinel = Options.forceLateLoweringSentinel.read(
parsedOptions,
);
@@ -132,7 +127,6 @@ class SuiteFolderOptions {
onError: (String message) => throw new ArgumentError(message),
onWarning: (String message) => throw new ArgumentError(message),
),
enableUnscheduledExperiments: enableUnscheduledExperiments,
forceLateLowerings: forceLateLowering,
forceLateLoweringSentinel: forceLateLoweringSentinel,
forceStaticFieldLowering: forceStaticFieldLowering,
@@ -189,7 +183,6 @@ class SuiteFolderOptions {
/// test folders.
class FolderOptions {
final Map<ExperimentalFlag, bool> _explicitExperimentalFlags;
final bool? enableUnscheduledExperiments;
final int? forceLateLowerings;
final bool? forceLateLoweringSentinel;
final bool? forceStaticFieldLowering;
@@ -205,7 +198,6 @@ class FolderOptions {
new(
this._explicitExperimentalFlags, {
this.enableUnscheduledExperiments,
this.forceLateLowerings,
this.forceLateLoweringSentinel,
this.forceStaticFieldLowering,
-2
View File
@@ -835,8 +835,6 @@ CompilationSetup createCompilationSetup(
..onDiagnostic = (CfeDiagnosticMessage message) {
errors.add(message.plainTextFormatted);
}
..enableUnscheduledExperiments =
folderOptions.enableUnscheduledExperiments ?? false
..environmentDefines = folderOptions.defines
..explicitExperimentalFlags = experimentalFlags
..librariesSpecificationUri = librariesSpecificationUri
@@ -1 +0,0 @@
--enable-unscheduled-experiments
-5
View File
@@ -42,7 +42,6 @@ const List<Option> optionSpecification = [
Options.dumpIr,
Options.showOffsets,
Options.enableExperiment,
Options.enableUnscheduledExperiments,
Options.excludeSource,
Options.omitPlatform,
Options.fatal,
@@ -176,9 +175,6 @@ ProcessedOptions analyzeCommandLine(
final String? singleRootScheme = Options.singleRootScheme.read(parsedOptions);
final Uri? singleRootBase = Options.singleRootBase.read(parsedOptions);
final bool enableUnscheduledExperiments = Options.enableUnscheduledExperiments
.read(parsedOptions);
final List<Uri> linkDependencies =
Options.linkDependencies.read(parsedOptions) ?? [];
@@ -237,7 +233,6 @@ ProcessedOptions analyzeCommandLine(
..skipPlatformVerification = skipPlatformVerification
..explicitExperimentalFlags = explicitExperimentalFlags
..environmentDefines = environmentDefines
..enableUnscheduledExperiments = enableUnscheduledExperiments
..additionalDillModules = linkDependencies
..emitDeps = !noDeps
..invocationModes = InvocationMode.parseArguments(invocationModes)