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

Unified Diff: runtime/lib/collection_patch.dart

Issue 23902051: Remove override of runtimeType from HashMap implementations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « no previous file | sdk/lib/_internal/lib/collection_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/collection_patch.dart
diff --git a/runtime/lib/collection_patch.dart b/runtime/lib/collection_patch.dart
index 61cf8d6c089a0ef93c9e3cf483d91d9cd6cdbbed..640b72bbe7dabd9d38ccad7f79a03e662cd70507 100644
--- a/runtime/lib/collection_patch.dart
+++ b/runtime/lib/collection_patch.dart
@@ -35,7 +35,6 @@ const int _MODIFICATION_COUNT_MASK = 0x3fffffff;
class _HashMap<K, V> implements HashMap<K, V> {
static const int _INITIAL_CAPACITY = 8;
- Type get runtimeType => HashMap;
int _elementCount = 0;
List<_HashMapEntry> _buckets = new List(_INITIAL_CAPACITY);
@@ -226,7 +225,6 @@ class _CustomHashMap<K, V> extends _HashMap<K, V> {
_CustomHashMap(this._equals, this._hashCode, validKey)
: _validKey = (validKey != null) ? validKey : new _TypeTest<K>().test;
- Type get runtimeType => HashMap;
bool containsKey(Object key) {
if (!_validKey(key)) return false;
@@ -320,7 +318,6 @@ class _CustomHashMap<K, V> extends _HashMap<K, V> {
}
class _IdentityHashMap<K, V> extends _HashMap<K, V> {
- Type get runtimeType => HashMap;
bool containsKey(Object key) {
int hashCode = key.hashCode;
@@ -904,7 +901,6 @@ abstract class _LinkedHashMapMixin<K, V> implements LinkedHashMap<K, V> {
var _nextEntry;
var _previousEntry;
- Type get runtimeType => LinkedHashMap;
bool containsValue(Object value) {
int modificationCount = _modificationCount;
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/collection_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698