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 bd15590cd7e85bcff2febcaebe65ab189df8f3d5..cd44a0f2f9dd071c3cc0570c2f6de40329051cab 100644 |
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate |
@@ -157,9 +157,8 @@ class _ChildrenElementList extends ListBase<Element> { |
throw new UnsupportedError('TODO(jacobr): should we impl?'); |
} |
- dynamic reduce(dynamic initialValue, |
- dynamic combine(dynamic previousValue, Element element)) { |
- return _childElements.reduce(initialValue, combine); |
+ Element reduce(Element combine(Element value, Element element)) { |
+ return _childElements.reduce(combine); |
} |
dynamic fold(dynamic initialValue, |
@@ -272,10 +271,6 @@ class _ChildrenElementList extends ListBase<Element> { |
return first; |
} |
- Element min([int compare(Element a, Element b)]) { |
- return _childElements.min(compare); |
- } |
- |
Element max([int compare(Element a, Element b)]) { |
return _childElements.max(compare); |
} |