rustc: Remove some interior vectors from typestate and some useless vec-related imports

This commit is contained in:
Patrick Walton
2011-07-12 16:44:57 -07:00
parent ccd0fffcce
commit a3add84909
6 changed files with 7 additions and 26 deletions

View File

@@ -174,14 +174,6 @@ fn lit_eq(&@ast::lit l, &@ast::lit m) -> bool {
}
}
// FIXME move to vec
fn any[T](&fn(&T) -> bool f, &vec[T] v) -> bool {
for (T t in v) {
if (f(t)) { ret true; }
}
ret false;
}
tag call_kind {
kind_call;
kind_spawn;