Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: pkg/front_end/lib/src/scanner/errors.dart

Issue 2491593003: Remove deprecated members from ErrorCode. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/scanner/errors.dart
diff --git a/pkg/front_end/lib/src/scanner/errors.dart b/pkg/front_end/lib/src/scanner/errors.dart
index 4688ccd0f2c36ab133a5a56181a2b937c64cadd2..e5f66def1546d0a4d031edf0d72301342d6f9e05 100644
--- a/pkg/front_end/lib/src/scanner/errors.dart
+++ b/pkg/front_end/lib/src/scanner/errors.dart
@@ -2,9 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'package:analyzer/error/error.dart'
- show errorCodeValues, errorCodeByUniqueName;
-
/**
* An error code associated with an [AnalysisError].
*
@@ -66,18 +63,6 @@ import 'package:analyzer/error/error.dart'
*/
abstract class ErrorCode {
/**
- * Engine error code values.
- */
- @deprecated
- static const List<ErrorCode> values = errorCodeValues;
-
- /**
- * An empty list of error codes.
- */
- @deprecated
- static const List<ErrorCode> EMPTY_LIST = const <ErrorCode>[];
-
- /**
* The name of the error code.
*/
final String name;
@@ -120,14 +105,6 @@ abstract class ErrorCode {
@override
String toString() => uniqueName;
-
- /**
- * Return the [ErrorCode] with the given [uniqueName], or `null` if not
- * found.
- */
- @deprecated
- static ErrorCode byUniqueName(String uniqueName) =>
- errorCodeByUniqueName(uniqueName);
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698