Stop working around issue 2644.
R=rnystrom@google.com
Review URL: https://codereview.chromium.org//16756002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23829 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index d0e5f11..759357e 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -13,7 +13,7 @@
/// parameters if a name conflict occurs.
Uri addQueryParameters(Uri url, Map<String, String> parameters) {
var queryMap = queryToMap(url.query);
- mapAddAll(queryMap, parameters);
+ queryMap.addAll(parameters);
return url.resolve("?${mapToQuery(queryMap)}");
}
@@ -47,11 +47,6 @@
}).join("&");
}
-/// Add all key/value pairs from [source] to [destination], overwriting any
-/// pre-existing values.
-void mapAddAll(Map destination, Map source) =>
- source.forEach((key, value) => destination[key] = value);
-
/// Decode a URL-encoded string. Unlike [Uri.decodeComponent], this includes
/// replacing `+` with ` `.
String urlDecode(String encoded) =>