Skip to content

Commit 7554423

Browse files
committed
stdlib: Remove old botch from ufind
1 parent d832f7a commit 7554423

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib/ufind.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ type node = option::t[uint];
1111
type ufind = rec(mutable vec[mutable node] nodes);
1212

1313
fn make() -> ufind {
14-
let vec[mutable node] v = [mutable none[uint]];
15-
vec::pop(v); // FIXME: botch
16-
17-
ret rec(mutable nodes=v);
14+
ret rec(mutable nodes=[mutable]);
1815
}
1916

2017
fn make_set(&ufind ufnd) -> uint {
@@ -54,4 +51,4 @@ fn prune(&ufind ufnd, uint n) {
5451

5552
auto len = vec::len[node](ufnd.nodes);
5653
while (len != n) { vec::pop[node](ufnd.nodes); len -= 1u; }
57-
}
54+
}

0 commit comments

Comments
 (0)