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

Unified Diff: sdk/lib/_internal/lib/js_helper.dart

Issue 59463004: Fix the generic type of Map.values for map literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file. Created 7 years, 1 month 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: sdk/lib/_internal/lib/js_helper.dart
diff --git a/sdk/lib/_internal/lib/js_helper.dart b/sdk/lib/_internal/lib/js_helper.dart
index 6a6ff8e87ecc60e9fff2a3440edcaa07ee500bac..35cbc4a958e95ae8fb1969437fed26f4dbee1caa 100644
--- a/sdk/lib/_internal/lib/js_helper.dart
+++ b/sdk/lib/_internal/lib/js_helper.dart
@@ -30,6 +30,7 @@ import 'dart:_foreign_helper' show DART_CLOSURE_TO_JS,
RAW_DART_FUNCTION_REF;
import 'dart:_interceptors';
import 'dart:_collection-dev' as _symbol_dev;
+import 'dart:_collection-dev' show MappedIterable;
import 'dart:_js_names' show
mangledNames,
@@ -1462,11 +1463,6 @@ makeLiteralMap(keyValuePairs) {
return fillLiteralMap(keyValuePairs, new LinkedHashMap());
}
-makeConstantMap(keyValuePairs) {
- return fillLiteralMap(keyValuePairs,
- new LinkedHashMap(equals: identical, hashCode: objectHashCode));
-}
-
fillLiteralMap(keyValuePairs, Map result) {
// TODO(johnniwinther): Use JSArray to optimize this code instead of calling
// [getLength] and [getIndex].

Powered by Google App Engine
This is Rietveld 408576698