refactor(forms): removed iterableToList

This commit is contained in:
vsavkin
2015-07-17 08:56:34 -07:00
parent c6409cb624
commit 13b1d85058
4 changed files with 3 additions and 13 deletions

View File

@ -195,8 +195,6 @@ class ListWrapper {
bool isListLikeIterable(obj) => obj is Iterable;
List iterableToList(Iterable ii) => ii.toList();
void iterateListLike(iter, fn(item)) {
assert(iter is Iterable);
for (var item in iter) {

View File

@ -260,13 +260,6 @@ export function iterateListLike(obj, fn: Function) {
}
}
}
export function iterableToList<T>(ii: any): List<T> {
var res = [];
for (var i of ii) {
res.push(i);
}
return res;
}
// Safari and Internet Explorer do not support the iterable parameter to the
// Set constructor. We work around that by manually adding the items.