From da736dbd052ef67651991dfcc858684315c336fc Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 14 May 2019 13:49:19 +0200 Subject: [PATCH] bmv: remove duplicate code --- nihav-game/src/codecs/bmv.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nihav-game/src/codecs/bmv.rs b/nihav-game/src/codecs/bmv.rs index eb228bb..c00760e 100644 --- a/nihav-game/src/codecs/bmv.rs +++ b/nihav-game/src/codecs/bmv.rs @@ -84,11 +84,7 @@ impl<'a> BMVWriter<'a> { for _ in 0..len { let saddr = (self.pos as isize) + self.off; if saddr < 0 { continue; } - if self.fwd { - self.data[self.pos] = self.data[saddr as usize]; - } else { - self.data[self.pos] = self.data[saddr as usize]; - } + self.data[self.pos] = self.data[saddr as usize]; self.advance(); } } -- 2.39.5