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

Unified Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 15950008: "Reverting 23366" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « tests/html/element_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
index 7a9f12efbb14ada6e90c08fac99e5b7e2542dcda..188759ea742f09c3ae992fe2279559f0bc12dab9 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -58,24 +58,6 @@ class _ChildrenElementList extends ListBase<Element> {
throw new UnsupportedError('Cannot sort element lists');
}
- void removeWhere(bool test(Element element)) {
- _filter(test, false);
- }
-
- void retainWhere(bool test(Element element)) {
- _filter(test, true);
- }
-
- void _filter(bool test(var element), bool retainMatching) {
- List removed = [];
- if (retainMatching) {
- removed = _element.children.where((e) => !test(e));
- } else {
- removed = _element.children.where(test);
- }
- for (var e in removed) e.remove();
- }
-
void setRange(int start, int end, Iterable<Element> iterable,
[int skipCount = 0]) {
throw new UnimplementedError();
« no previous file with comments | « tests/html/element_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698