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

Unified Diff: utils/pub/utils.dart

Issue 11881032: Stop working around issue 7781 in Pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/tests/pub/curl_client_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/utils.dart
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
index e605579417e03737af720af397a178cef7321229..aac48fe0e305a7203f943955e5cd9619b3594c9e 100644
--- a/utils/pub/utils.dart
+++ b/utils/pub/utils.dart
@@ -177,27 +177,3 @@ void mapAddAll(Map destination, Map source) =>
/// replacing `+` with ` `.
String urlDecode(String encoded) =>
decodeUriComponent(encoded.replaceAll("+", " "));
-
-// TODO(rnystrom): Remove this when #7781 is fixed.
-/// When an error is rethrown in an async callback, you can end up with nested
-/// AsyncErrors. This unwraps them to find the real originating error.
-getRealError(error) {
- while (error is AsyncError) {
- error = error.error;
- }
-
- return error;
-}
-
-// TODO(nweiz): Remove this when #7781 is fixed.
-/// When an error is rethrown in an async callback, you can end up with nested
-/// AsyncErrors. This unwraps them to find the real originating stack trace.
-getRealStackTrace(error) {
- var trace = null;
- while (error is AsyncError) {
- trace = error.stackTrace;
- error = error.error;
- }
-
- return trace;
-}
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/tests/pub/curl_client_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698