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

Unified Diff: pkg/front_end/lib/src/fasta/messages.dart

Issue 2980823002: Remove deprecated_warning. (Closed)
Patch Set: Created 3 years, 5 months 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
Index: pkg/front_end/lib/src/fasta/messages.dart
diff --git a/pkg/front_end/lib/src/fasta/messages.dart b/pkg/front_end/lib/src/fasta/messages.dart
index 8e477962f722818597e5cc45c1bfb444bc5709ce..72f2a09531509fd199417e874bed6d499a02fb49 100644
--- a/pkg/front_end/lib/src/fasta/messages.dart
+++ b/pkg/front_end/lib/src/fasta/messages.dart
@@ -58,16 +58,6 @@ void nit(Message message, int charOffset, Uri uri) {
}
}
-void deprecated_warning(Uri uri, int charOffset, String message) {
- if (hideWarnings) return;
- print(deprecated_format(uri, charOffset, colorWarning("Warning: $message")));
- if (warningsAreFatal) {
- if (isVerbose) print(StackTrace.current);
- throw new deprecated_InputError(
- uri, charOffset, "Compilation aborted due to fatal warnings.");
- }
-}
-
String colorWarning(String message) {
// TODO(ahe): Colors need to be optional. Doesn't work well in Emacs or on
// Windows.
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart ('k') | pkg/front_end/lib/src/fasta/source/stack_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698