From e63a772067515d8d69883ba54aa7809e61b37057 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 17 Apr 2020 13:57:15 +0200 Subject: [PATCH] vmd: remove leftover unused code --- nihav-game/src/codecs/vmd.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nihav-game/src/codecs/vmd.rs b/nihav-game/src/codecs/vmd.rs index c8ef7da..ce40b95 100644 --- a/nihav-game/src/codecs/vmd.rs +++ b/nihav-game/src/codecs/vmd.rs @@ -435,9 +435,6 @@ impl VMDAudioDecoder { pred + i32::from(SOL_AUD_STEPS16[(val & 0x7F) as usize]) } } - fn cvt_u8(val: u8) -> u8 { - val ^ 0x80 - } } impl NADecoder for VMDAudioDecoder { @@ -532,10 +529,7 @@ impl NADecoder for VMDAudioDecoder { dst[doff + i] = br.read_byte()?; } } else { - for i in 0..self.blk_size { - let val = Self::cvt_u8(br.read_byte()?); - dst[doff + i] = val; - } + unreachable!(); } doff += self.blk_align * channels; mask >>= 1; -- 2.39.5