From 2e93736a7786dfb73cf32a2e75ae5679c375ba60 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Tue, 29 May 2018 16:05:48 -0400 Subject: [PATCH] Remove Pre-Existing Repcode Check --- lib/compress/zstd_lazy.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index e90f51a74..3a82ef48d 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -549,12 +549,6 @@ size_t ZSTD_compressBlock_lazy_generic( base + repIndex; /* check repCode */ - if ((offset_1>0) & (MEM_read32(ip+1) == MEM_read32(ip+1 - offset_1))) { - /* repcode : we take it */ - matchLength = ZSTD_count(ip+1+4, ip+1+4-offset_1, iend) + 4; - if (depth==0) goto _storeSequence; - } - if (dictMode == ZSTD_dictMatchState && ((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */) && (MEM_read32(repMatch) == MEM_read32(ip+1)) ) {