]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed deflate_quick algorithm not being used due to old check.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Tue, 9 Jun 2020 01:59:29 +0000 (18:59 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 9 Jun 2020 06:18:33 +0000 (08:18 +0200)
deflate.c

index 38a4176bdd6b1525b3295ab4b5573e1719eacaa1..3a6b05faac2e57733c38676d4524b4e469ae480c 100644 (file)
--- a/deflate.c
+++ b/deflate.c
@@ -1003,9 +1003,6 @@ int ZEXPORT PREFIX(deflate)(PREFIX3(stream) *strm, int flush) {
                  s->level == 0 ? deflate_stored(s, flush) :
                  s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :
                  s->strategy == Z_RLE ? deflate_rle(s, flush) :
-#ifndef NO_QUICK_STRATEGY
-                 s->level == 1 ? deflate_fast(s, flush) :
-#endif
                  (*(configuration_table[s->level].func))(s, flush);
 
         if (bstate == finish_started || bstate == finish_done) {