Remove std::ivec::to_vec

Nobody needs to create vecs now
This commit is contained in:
Brian Anderson 2011-08-12 16:07:12 -07:00
parent ee7d03f7d7
commit 34abbde694

View File

@ -25,14 +25,6 @@ fn from_vec[@T](v: &vec[mutable? T]) -> [T] {
ret iv;
}
fn to_vec[@T](iv: &[T]) -> vec[T] {
let v: vec[T] = [];
for e in iv {
v += [e];
}
ret v;
}
/// Reserves space for `n` elements in the given vector.
fn reserve[@T](v: &mutable [mutable? T], n: uint) {
rustrt::ivec_reserve_shared(v, n);