mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
stdlib: Remove old botch from ufind
This commit is contained in:
parent
d832f7abec
commit
7554423423
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user