std: Remove unused variables
This commit is contained in:
parent
23fcab927c
commit
77bbd72171
|
@ -1290,7 +1290,6 @@ mod tests {
|
|||
let string_len = str::len(*sample);
|
||||
let rope_iter = iterator::char::start(r);
|
||||
let mut equal = true;
|
||||
let mut pos = 0u;
|
||||
while equal {
|
||||
alt(node::char_iterator::next(rope_iter)) {
|
||||
option::none {
|
||||
|
@ -1303,7 +1302,6 @@ mod tests {
|
|||
if ch != c { equal = false; break; }
|
||||
}
|
||||
}
|
||||
pos += 1u;
|
||||
}
|
||||
|
||||
assert equal;
|
||||
|
|
|
@ -241,7 +241,7 @@ mod test {
|
|||
delayed_send(hl_loop, 1000u, test_ch, expected);
|
||||
};
|
||||
|
||||
let actual = alt recv_timeout(hl_loop, 1u, test_po) {
|
||||
alt recv_timeout(hl_loop, 1u, test_po) {
|
||||
none { successes += 1; }
|
||||
_ { failures += 1; }
|
||||
};
|
||||
|
|
|
@ -150,11 +150,11 @@ mod test {
|
|||
exit_ch_ptr));
|
||||
}
|
||||
crust fn simple_timer_cb(timer_ptr: *ll::uv_timer_t,
|
||||
status: libc::c_int) unsafe {
|
||||
_status: libc::c_int) unsafe {
|
||||
log(debug, "in simple timer cb");
|
||||
ll::timer_stop(timer_ptr);
|
||||
let hl_loop = get_gl();
|
||||
hl::interact(hl_loop) {|loop_ptr|
|
||||
hl::interact(hl_loop) {|_loop_ptr|
|
||||
log(debug, "closing timer");
|
||||
ll::close(timer_ptr, simple_timer_close_cb);
|
||||
log(debug, "about to deref exit_ch_ptr");
|
||||
|
|
|
@ -236,8 +236,6 @@ mod test {
|
|||
crust fn async_handle_cb(handle: *ll::uv_async_t, status: libc::c_int)
|
||||
unsafe {
|
||||
log(debug, #fmt("async_handle_cb handle %? status %?",handle,status));
|
||||
let hl_loop = (*(ll::get_data_for_uv_handle(handle)
|
||||
as *ah_data)).hl_loop;
|
||||
ll::close(handle, async_close_cb);
|
||||
}
|
||||
type ah_data = {
|
||||
|
|
Loading…
Reference in New Issue