From 19855d695b67576cd87e302b8b1646ab36aa0753 Mon Sep 17 00:00:00 2001 From: vkrasnov Date: Sat, 29 Nov 2014 13:31:25 +0000 Subject: [PATCH] TOO_FAR is now redundant --- deflate.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/deflate.c b/deflate.c index 64e5edaa..7ce054c9 100644 --- a/deflate.c +++ b/deflate.c @@ -1831,12 +1831,7 @@ local block_state deflate_slow(s, flush) s->match_length = longest_match (s, hash_head); /* longest_match() sets match_start */ - if (s->match_length <= 5 && (s->strategy == Z_FILTERED -#if TOO_FAR <= 32767 - || (s->match_length == MIN_MATCH && - s->strstart - s->match_start > TOO_FAR) -#endif - )) { + if (s->match_length <= 5 && (s->strategy == Z_FILTERED )) { /* If prev_match is also MIN_MATCH, match_start is garbage * but we will ignore the current match anyway.