Index: pkg/analyzer_cli/lib/src/analyzer_impl.dart |
diff --git a/pkg/analyzer_cli/lib/src/analyzer_impl.dart b/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
index 12b39dff3279f04baaf70d4670bd52be1d654690..da846c2b7eb33eb972052d95a6d96c84579b7e87 100644 |
--- a/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
+++ b/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
@@ -259,14 +259,12 @@ class AnalyzerImpl { |
static ErrorSeverity computeSeverity( |
AnalysisError error, CommandLineOptions options, |
[AnalysisContext context]) { |
- bool isStrongMode = false; |
if (context != null) { |
ErrorProcessor processor = ErrorProcessor.getProcessor(context, error); |
// If there is a processor for this error, defer to it. |
if (processor != null) { |
return processor.severity; |
} |
- isStrongMode = context.analysisOptions.strongMode; |
} |
if (!options.enableTypeChecks && |
@@ -276,10 +274,6 @@ class AnalyzerImpl { |
return ErrorSeverity.ERROR; |
} else if (options.lintsAreFatal && error.errorCode is LintCode) { |
return ErrorSeverity.ERROR; |
- } else if (isStrongMode && |
- error is StaticWarningCode && |
- (error as StaticWarningCode).isStrongModeError) { |
- return ErrorSeverity.ERROR; |
} |
return error.errorCode.errorSeverity; |
} |