stdlib: Remove old botch from ufind

This commit is contained in:
Patrick Walton 2011-06-28 14:15:12 -07:00
parent d832f7abec
commit 7554423423

View File

@ -11,10 +11,7 @@ type node = option::t[uint];
type ufind = rec(mutable vec[mutable node] nodes);
fn make() -> ufind {
let vec[mutable node] v = [mutable none[uint]];
vec::pop(v); // FIXME: botch
ret rec(mutable nodes=v);
ret rec(mutable nodes=[mutable]);
}
fn make_set(&ufind ufnd) -> uint {
@ -54,4 +51,4 @@ fn prune(&ufind ufnd, uint n) {
auto len = vec::len[node](ufnd.nodes);
while (len != n) { vec::pop[node](ufnd.nodes); len -= 1u; }
}
}