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

Unified Diff: runtime/lib/immutable_map.dart

Issue 8637018: Implement type checking of map literals (issue 221). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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: runtime/lib/immutable_map.dart
===================================================================
--- runtime/lib/immutable_map.dart (revision 1763)
+++ runtime/lib/immutable_map.dart (working copy)
@@ -93,16 +93,3 @@
}
}
-
-class MutableMap {
- // [elements] contains n key-value pairs. The keys are at position
- // 2*n, the values at position 2*n+1.
- static fromLiteral(List elements) {
- var map = new LinkedHashMap();
- var len = elements.length;
- for (int i = 1; i < len; i += 2) {
- map[elements[i-1]] = elements[i];
- }
- return map;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698