Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Remove disableNewTaskModel failsafe.
Browse files Browse the repository at this point in the history
No turning back now! :)

R=scheglov@google.com

Review URL: https://codereview.chromium.org//1420843004 .
  • Loading branch information
pq committed Oct 30, 2015
1 parent c93a3d2 commit b4087e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions lib/src/driver.dart
Expand Up @@ -231,9 +231,6 @@ class Driver {
if (options.enableSuperMixins != _previousOptions.enableSuperMixins) {
return false;
}
if (options.disableNewTaskModel != _previousOptions.disableNewTaskModel) {
return false;
}
return true;
}

Expand Down Expand Up @@ -388,8 +385,6 @@ class Driver {
return;
}
_previousOptions = options;
// Determine whether the new task model should be used.
AnalysisEngine.instance.useTaskModel = !options.disableNewTaskModel;
// Choose a package resolution policy and a diet parsing policy based on
// the command-line options.
SourceFactory sourceFactory = _chooseUriResolutionPolicy(options);
Expand Down
9 changes: 0 additions & 9 deletions lib/src/options.dart
Expand Up @@ -39,9 +39,6 @@ class CommandLineOptions {
/// A table mapping the names of defined variables to their values.
final Map<String, String> definedVariables;

/// Whether to disable the new task model.
final bool disableNewTaskModel;

/// Whether to report hints
final bool disableHints;

Expand Down Expand Up @@ -108,7 +105,6 @@ class CommandLineOptions {
this.definedVariables = definedVariables,
analysisOptionsFile = args['options'],
disableHints = args['no-hints'],
disableNewTaskModel = args['disable-new-task-model'],
displayVersion = args['version'],
enableNullAwareOperators = args['enable-null-aware-operators'],
enableStrictCallChecks = args['enable-strict-call-checks'],
Expand Down Expand Up @@ -260,11 +256,6 @@ class CommandLineOptions {
//
// Hidden flags.
//
..addFlag('disable-new-task-model',
help: 'Disable the use of the new task model.',
defaultsTo: false,
negatable: false,
hide: true)
..addFlag('enable-async',
help: 'Enable support for the proposed async feature.',
defaultsTo: false,
Expand Down

0 comments on commit b4087e9

Please sign in to comment.