about summary refs log tree commit diff stats
path: root/src/img
diff options
context:
space:
mode:
Diffstat (limited to 'src/img')
-rw-r--r--src/img/png.nim1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/img/png.nim b/src/img/png.nim
index 3de395f2..ace31d00 100644
--- a/src/img/png.nim
+++ b/src/img/png.nim
@@ -413,7 +413,6 @@ proc zlibFree(opaque: pointer, address: pointer) {.cdecl.} =
   dealloc(address)
 
 proc initZStream(reader: var PNGReader) =
-  let bps = max(int(reader.bitDepth) div 8, 1)
   reader.idatBuf = newSeq[uint8](reader.scanlen * reader.height)
   reader.uprow = newSeq[uint8](reader.scanlen)
   reader.strm = z_stream(