From: Kostya Shishkov Date: Tue, 14 May 2019 11:49:19 +0000 (+0200) Subject: bmv: remove duplicate code X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=da736dbd052ef67651991dfcc858684315c336fc;p=nihav.git bmv: remove duplicate code --- 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(); } }