1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-24 21:37:46 +00:00

Remove unused round function in MDL

This commit is contained in:
Joshua Goins 2023-11-24 08:18:46 -05:00
parent 108d33f166
commit 49a8752462

View file

@ -734,11 +734,6 @@ impl MDL {
} }
fn read_byte_float4(cursor: &mut Cursor<ByteSpan>) -> Option<[f32; 4]> { fn read_byte_float4(cursor: &mut Cursor<ByteSpan>) -> Option<[f32; 4]> {
// TODO: hmmm
fn round(x: f32) -> f32 {
(x * 100.0).round() / 100.0
}
Some([ Some([
(f32::from(cursor.read_le::<u8>().ok()?) / 255.0), (f32::from(cursor.read_le::<u8>().ok()?) / 255.0),
(f32::from(cursor.read_le::<u8>().ok()?) / 255.0), (f32::from(cursor.read_le::<u8>().ok()?) / 255.0),