Remove dead code detected by Coverity.

This commit is contained in:
Michael R Sweet
2026-01-16 11:47:08 -05:00
parent 3e6c38a436
commit e6e0b84dfc

View File

@@ -1300,9 +1300,7 @@ stream_inflate(pdfio_stream_t *st, // I - Stream
}
while (bytes > 0 && exactly);
if (exactly && bytes > 0)
return (-1);
else if (st->filter == PDFIO_FILTER_FLATE)
if (st->filter == PDFIO_FILTER_FLATE)
return (st->flate.next_out - (Bytef *)buffer);
else
return (st->lzw->next_out - (uint8_t *)buffer);