| Index: dart/lib/compiler/implementation/colors.dart
|
| diff --git a/dart/lib/compiler/implementation/colors.dart b/dart/lib/compiler/implementation/colors.dart
|
| index dcabedbee1ec88c69fa40d7b6148a3fff0a925db..abc85ef9303fcf8c3035d160b5a49e132930fbf3 100644
|
| --- a/dart/lib/compiler/implementation/colors.dart
|
| +++ b/dart/lib/compiler/implementation/colors.dart
|
| @@ -9,17 +9,7 @@ final String RED_COLOR = '\u001b[31m';
|
| final String MAGENTA_COLOR = '\u001b[35m';
|
| final String NO_COLOR = '\u001b[0m';
|
|
|
| -// BUG(2654): This is a fairly hacky way of turning of coloring used
|
| -// in messages. It would be better if the coloring could be dealt with
|
| -// entirely by the user of the compiler API, but that is not the case
|
| -// today.
|
| -bool enabled = true;
|
| -
|
| -String wrap(String string, String color)
|
| - => enabled ? "${color}$string${NO_COLOR}" : string;
|
| -String green(String string)
|
| - => wrap(string, GREEN_COLOR);
|
| -String red(String string)
|
| - => wrap(string, RED_COLOR);
|
| -String magenta(String string)
|
| - => wrap(string, MAGENTA_COLOR);
|
| +String wrap(String string, String color) => "${color}$string${NO_COLOR}";
|
| +String green(String string) => wrap(string, GREEN_COLOR);
|
| +String red(String string) => wrap(string, RED_COLOR);
|
| +String magenta(String string) => wrap(string, MAGENTA_COLOR);
|
|
|