Skip to content

Commit

Permalink
Delete invalid debug assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Aug 19, 2023
1 parent dfb772c commit 19ee9e0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,10 @@ impl CenterSliderInput {
Ordering::Equal => 1.0,
Ordering::Less => {
let gain_ratio = db_to_ratio(f64::from(-self.position) * min_db) as f32;
// Still in range after transformation
debug_assert!(Self::POSITION_RANGE.contains(&gain_ratio));
gain_ratio
}
Ordering::Greater => {
let gain_ratio = db_to_ratio(f64::from(self.position) * max_db) as f32;
// Still in range after transformation
debug_assert!(Self::POSITION_RANGE.contains(&gain_ratio));
gain_ratio
}
}
Expand Down

0 comments on commit 19ee9e0

Please sign in to comment.