Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsamseth committed Sep 14, 2024
1 parent 3396c17 commit 47629de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion engine/src/newtypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ mod value;
pub use depth::Depth;
pub use nonmax::NonMaxI16;
pub use ply::Ply;
pub use value::{Value, ValueExt};
pub use value::Value;
12 changes: 0 additions & 12 deletions engine/src/newtypes/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,6 @@ impl From<fathom::Wdl> for Value {
}
}

/// A utility trait for operations involving [`Value`]s.
#[allow(clippy::module_name_repetitions)]
pub trait ValueExt {
fn scaled_by(self, factor: Value) -> Self;
}

impl ValueExt for i32 {
fn scaled_by(self, factor: Value) -> Self {
self * i32::from(factor.0)
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 47629de

Please sign in to comment.