From: Kostya Shishkov Date: Fri, 27 Feb 2026 17:52:26 +0000 (+0100) Subject: jpeg: remove unused variable xstep[] X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=172fc7dabfefce98917844a245fb4d57f81eaff3;p=nihav.git jpeg: remove unused variable xstep[] It is not needed since subsampling is handled in the loop per case. --- diff --git a/nihav-commonfmt/src/codecs/jpeg.rs b/nihav-commonfmt/src/codecs/jpeg.rs index 710aa48..c8c81c5 100644 --- a/nihav-commonfmt/src/codecs/jpeg.rs +++ b/nihav-commonfmt/src/codecs/jpeg.rs @@ -351,7 +351,6 @@ impl JPEGDecoder { *stride = frm.stride[ci.component_id]; } let mut nblks = [0; MAX_CHROMATONS]; - let mut xstep = [0; MAX_CHROMATONS]; let mut ystep = [0; MAX_CHROMATONS]; let mut hstep = 8; let mut vstep = 8; @@ -362,7 +361,6 @@ impl JPEGDecoder { hstep = hstep.max(hs * 8); vstep = vstep.max(vs * 8); nblks[i] = hs * vs; - xstep[i] = hs * 8; ystep[i] = vs * 8; } } else { @@ -370,7 +368,6 @@ impl JPEGDecoder { nblks[0] = 1; hstep = usize::from(8 * self.max_h / (subsamp >> 4)); vstep = usize::from(8 * self.max_h / (subsamp & 0xF)); - xstep[0] = 8; ystep[0] = 8; }