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

Unified Diff: pkg/http/lib/src/utils.dart

Issue 16756002: Stop working around issue 2644. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « pkg/http/lib/src/mock_client.dart ('k') | pkg/oauth2/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/utils.dart
diff --git a/pkg/http/lib/src/utils.dart b/pkg/http/lib/src/utils.dart
index 9125ddcbd3ce1e7d6b1649f7e0103405b04e496c..1cbe6aaf87c760bacdccb953f39ec9720feff0f4 100644
--- a/pkg/http/lib/src/utils.dart
+++ b/pkg/http/lib/src/utils.dart
@@ -42,15 +42,6 @@ String mapToQuery(Map<String, String> map) {
return pairs.map((pair) => "${pair[0]}=${pair[1]}").join("&");
}
-/// Adds all key/value pairs from [source] to [destination], overwriting any
-/// pre-existing values.
-///
-/// var a = {"foo": "bar", "baz": "bang"};
-/// mapAddAll(a, {"baz": "zap", "qux": "quux"});
-/// a; //=> {"foo": "bar", "baz": "zap", "qux": "quux"}
-void mapAddAll(Map destination, Map source) =>
- source.forEach((key, value) => destination[key] = value);
-
/// Decodes a URL-encoded string. Unlike [Uri.decodeComponent], this includes
/// replacing `+` with ` `.
String urlDecode(String encoded) =>
« no previous file with comments | « pkg/http/lib/src/mock_client.dart ('k') | pkg/oauth2/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698