Remove spurious dbg!() calls
This commit is contained in:
parent
69498f3527
commit
379c74e874
2 changed files with 4 additions and 6 deletions
|
@ -205,7 +205,6 @@ unsafe extern "system" fn window_proc(
|
||||||
|
|
||||||
let poll_callback = (*create_params).lpCreateParams as *mut PollCallback;
|
let poll_callback = (*create_params).lpCreateParams as *mut PollCallback;
|
||||||
assert!(!poll_callback.is_null());
|
assert!(!poll_callback.is_null());
|
||||||
dbg!(poll_callback);
|
|
||||||
|
|
||||||
// Store this for later use
|
// Store this for later use
|
||||||
SetWindowLongPtrA(handle, GWLP_USERDATA, poll_callback as isize);
|
SetWindowLongPtrA(handle, GWLP_USERDATA, poll_callback as isize);
|
||||||
|
@ -219,7 +218,6 @@ unsafe extern "system" fn window_proc(
|
||||||
return LRESULT(0);
|
return LRESULT(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg!(callback);
|
|
||||||
// This callback function just keeps popping off and handling tasks from the tasks queue
|
// This callback function just keeps popping off and handling tasks from the tasks queue
|
||||||
// until there's nothing left
|
// until there's nothing left
|
||||||
(*callback)();
|
(*callback)();
|
||||||
|
|
|
@ -217,7 +217,7 @@ mod tests {
|
||||||
// the expected time.
|
// the expected time.
|
||||||
smoother.set_target(100.0, 20.0);
|
smoother.set_target(100.0, 20.0);
|
||||||
for _ in 0..(10 - 2) {
|
for _ in 0..(10 - 2) {
|
||||||
dbg!(smoother.next());
|
smoother.next();
|
||||||
}
|
}
|
||||||
assert_ne!(smoother.next(), 20.0);
|
assert_ne!(smoother.next(), 20.0);
|
||||||
assert_eq!(smoother.next(), 20.0);
|
assert_eq!(smoother.next(), 20.0);
|
||||||
|
@ -232,7 +232,7 @@ mod tests {
|
||||||
// Integers are rounded, but with these values we can still test this
|
// Integers are rounded, but with these values we can still test this
|
||||||
smoother.set_target(100.0, 20);
|
smoother.set_target(100.0, 20);
|
||||||
for _ in 0..(10 - 2) {
|
for _ in 0..(10 - 2) {
|
||||||
dbg!(smoother.next());
|
smoother.next();
|
||||||
}
|
}
|
||||||
assert_ne!(smoother.next(), 20);
|
assert_ne!(smoother.next(), 20);
|
||||||
assert_eq!(smoother.next(), 20);
|
assert_eq!(smoother.next(), 20);
|
||||||
|
@ -248,7 +248,7 @@ mod tests {
|
||||||
// the expected time.
|
// the expected time.
|
||||||
smoother.set_target(100.0, 20.0);
|
smoother.set_target(100.0, 20.0);
|
||||||
for _ in 0..(10 - 2) {
|
for _ in 0..(10 - 2) {
|
||||||
dbg!(smoother.next());
|
smoother.next();
|
||||||
}
|
}
|
||||||
assert_ne!(smoother.next(), 20.0);
|
assert_ne!(smoother.next(), 20.0);
|
||||||
assert_eq!(smoother.next(), 20.0);
|
assert_eq!(smoother.next(), 20.0);
|
||||||
|
@ -263,7 +263,7 @@ mod tests {
|
||||||
// Integers are rounded, but with these values we can still test this
|
// Integers are rounded, but with these values we can still test this
|
||||||
smoother.set_target(100.0, 20);
|
smoother.set_target(100.0, 20);
|
||||||
for _ in 0..(10 - 2) {
|
for _ in 0..(10 - 2) {
|
||||||
dbg!(smoother.next());
|
smoother.next();
|
||||||
}
|
}
|
||||||
assert_ne!(smoother.next(), 20);
|
assert_ne!(smoother.next(), 20);
|
||||||
assert_eq!(smoother.next(), 20);
|
assert_eq!(smoother.next(), 20);
|
||||||
|
|
Loading…
Add table
Reference in a new issue