1
0
Fork 0

Remove spurious dbg!() calls

This commit is contained in:
Robbert van der Helm 2022-02-10 23:40:18 +01:00
parent 69498f3527
commit 379c74e874
2 changed files with 4 additions and 6 deletions

View file

@ -205,7 +205,6 @@ unsafe extern "system" fn window_proc(
let poll_callback = (*create_params).lpCreateParams as *mut PollCallback;
assert!(!poll_callback.is_null());
dbg!(poll_callback);
// Store this for later use
SetWindowLongPtrA(handle, GWLP_USERDATA, poll_callback as isize);
@ -219,7 +218,6 @@ unsafe extern "system" fn window_proc(
return LRESULT(0);
}
dbg!(callback);
// This callback function just keeps popping off and handling tasks from the tasks queue
// until there's nothing left
(*callback)();

View file

@ -217,7 +217,7 @@ mod tests {
// the expected time.
smoother.set_target(100.0, 20.0);
for _ in 0..(10 - 2) {
dbg!(smoother.next());
smoother.next();
}
assert_ne!(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
smoother.set_target(100.0, 20);
for _ in 0..(10 - 2) {
dbg!(smoother.next());
smoother.next();
}
assert_ne!(smoother.next(), 20);
assert_eq!(smoother.next(), 20);
@ -248,7 +248,7 @@ mod tests {
// the expected time.
smoother.set_target(100.0, 20.0);
for _ in 0..(10 - 2) {
dbg!(smoother.next());
smoother.next();
}
assert_ne!(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
smoother.set_target(100.0, 20);
for _ in 0..(10 - 2) {
dbg!(smoother.next());
smoother.next();
}
assert_ne!(smoother.next(), 20);
assert_eq!(smoother.next(), 20);