about summary refs log tree commit diff stats
path: root/src/img
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-13 01:44:55 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-13 01:44:55 +0200
commiteff1e064fde12fd6976919ca76b56c124231b31a (patch)
tree6df43f3cbbbb340e78b47be6334fe1ef7000e5c5 /src/img
parent3a245434cd4bd75a56700ed7814f78699e3a3dd7 (diff)
downloadchawan-eff1e064fde12fd6976919ca76b56c124231b31a.tar.gz
Make Result.text, json return promise
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(