Index: sdk/lib/html/templates/html/impl/impl_Storage.darttemplate |
diff --git a/sdk/lib/html/templates/html/impl/impl_Storage.darttemplate b/sdk/lib/html/templates/html/impl/impl_Storage.darttemplate |
deleted file mode 100644 |
index a48e3da0479bf6f61f9c78020feb99d733dfde2a..0000000000000000000000000000000000000000 |
--- a/sdk/lib/html/templates/html/impl/impl_Storage.darttemplate |
+++ /dev/null |
@@ -1,57 +0,0 @@ |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
-part of html; |
- |
-/// @domName $DOMNAME |
-class $CLASSNAME$EXTENDS implements Map<String, String> $NATIVESPEC { |
- |
- // TODO(nweiz): update this when maps support lazy iteration |
- bool containsValue(String value) => values.some((e) => e == value); |
- |
- bool containsKey(String key) => $dom_getItem(key) != null; |
- |
- String operator [](String key) => $dom_getItem(key); |
- |
- void operator []=(String key, String value) { $dom_setItem(key, value); } |
- |
- String putIfAbsent(String key, String ifAbsent()) { |
- if (!containsKey(key)) this[key] = ifAbsent(); |
- return this[key]; |
- } |
- |
- String remove(String key) { |
- final value = this[key]; |
- $dom_removeItem(key); |
- return value; |
- } |
- |
- void clear() => $dom_clear(); |
- |
- void forEach(void f(String key, String value)) { |
- for (var i = 0; true; i++) { |
- final key = $dom_key(i); |
- if (key == null) return; |
- |
- f(key, this[key]); |
- } |
- } |
- |
- Collection<String> get keys { |
- final keys = []; |
- forEach((k, v) => keys.add(k)); |
- return keys; |
- } |
- |
- Collection<String> get values { |
- final values = []; |
- forEach((k, v) => values.add(v)); |
- return values; |
- } |
- |
- int get length => $dom_length; |
- |
- bool get isEmpty => $dom_key(0) == null; |
-$!MEMBERS |
-} |