From: Kostya Shishkov Date: Fri, 17 Apr 2020 11:57:15 +0000 (+0200) Subject: vmd: remove leftover unused code X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e63a772067515d8d69883ba54aa7809e61b37057;p=nihav.git vmd: remove leftover unused code --- 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;