]> git.nihav.org Git - nihav.git/commitdiff
bmv: remove duplicate code
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 14 May 2019 11:49:19 +0000 (13:49 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 14 May 2019 11:49:19 +0000 (13:49 +0200)
nihav-game/src/codecs/bmv.rs

index eb228bbbe92eba2e49c16afa23fbd68874b12427..c00760e7eaf05c79b05f1b87e9433d781ce5b872 100644 (file)
@@ -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();
         }
     }