]> git.nihav.org Git - nihav.git/commitdiff
vmd: remove leftover unused code
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 17 Apr 2020 11:57:15 +0000 (13:57 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 17 Apr 2020 11:57:15 +0000 (13:57 +0200)
nihav-game/src/codecs/vmd.rs

index c8ef7daa55c5d4f3cc5ef1508b92a0ee341f0889..ce40b95796c14712fe9a9fd9bfbe648ee395f886 100644 (file)
@@ -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;