refactor(forms): removed iterableToList
This commit is contained in:
@ -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) {
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user