Skip to content

Commit 34abbde

Browse files
committed
Remove std::ivec::to_vec
Nobody needs to create vecs now
1 parent ee7d03f commit 34abbde

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/lib/ivec.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ fn from_vec[@T](v: &vec[mutable? T]) -> [T] {
2525
ret iv;
2626
}
2727

28-
fn to_vec[@T](iv: &[T]) -> vec[T] {
29-
let v: vec[T] = [];
30-
for e in iv {
31-
v += [e];
32-
}
33-
ret v;
34-
}
35-
3628
/// Reserves space for `n` elements in the given vector.
3729
fn reserve[@T](v: &mutable [mutable? T], n: uint) {
3830
rustrt::ivec_reserve_shared(v, n);

0 commit comments

Comments
 (0)