summaryrefslogtreecommitdiff
path: root/deflate_quick.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-06-02 09:17:56 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-06-08 21:16:31 +0200
commitbf01f6b9ea4b2095de7d3d456fd5963f1e8fe05f (patch)
tree913006ca532f0596d311d18e82d03625f2f5f70d /deflate_quick.c
parent8095fa71f0187c99bfbb364c99b563ecf57eadb9 (diff)
Move check for match length in deflate_quick to check_match.
Diffstat (limited to 'deflate_quick.c')
-rw-r--r--deflate_quick.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/deflate_quick.c b/deflate_quick.c
index cd79af4..70a7e34 100644
--- a/deflate_quick.c
+++ b/deflate_quick.c
@@ -68,9 +68,6 @@ ZLIB_INTERNAL block_state deflate_quick(deflate_state *s, int flush) {
if (match_len > s->lookahead)
match_len = s->lookahead;
- if (match_len > MAX_MATCH)
- match_len = MAX_MATCH;
-
check_match(s, s->strstart, hash_head, match_len);
zng_tr_emit_dist(s, static_ltree, static_dtree, match_len - MIN_MATCH, dist);