]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Remove Unused Variable
authorW. Felix Handte <w@felixhandte.com>
Mon, 8 Oct 2018 22:38:16 +0000 (15:38 -0700)
committerW. Felix Handte <w@felixhandte.com>
Mon, 8 Oct 2018 22:59:32 +0000 (15:59 -0700)
lib/compress/zstd_lazy.c

index 4ca69e3ec37f7455f27f5d1c824e99b3dc5debc7..29322f6e11fcf136d6f860014484404eff555f39 100644 (file)
@@ -173,7 +173,6 @@ ZSTD_DUBT_findBetterDictMatch (
     U32         const btLow = (btMask >= dictHighLimit - dictLowLimit) ? dictLowLimit : dictHighLimit - btMask;
 
     size_t commonLengthSmaller=0, commonLengthLarger=0, bestLength=0;
-    U32 matchEndIdx = current+8+1;
 
     (void)dictMode;
     assert(dictMode == ZSTD_dictMatchState);
@@ -188,8 +187,6 @@ ZSTD_DUBT_findBetterDictMatch (
 
         if (matchLength > bestLength) {
             U32 matchIndex = dictMatchIndex + dictIndexDelta;
-            if (matchLength > matchEndIdx - matchIndex)
-                matchEndIdx = matchIndex + (U32)matchLength;
             if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(current-matchIndex+1) - ZSTD_highbit32((U32)offsetPtr[0]+1)) ) {
                 DEBUGLOG(2, "ZSTD_DUBT_findBestDictMatch(%u) : found better match length %u -> %u and offsetCode %u -> %u (dictMatchIndex %u, matchIndex %u)",
                     current, (U32)bestLength, (U32)matchLength, (U32)*offsetPtr, ZSTD_REP_MOVE + current - matchIndex, dictMatchIndex, matchIndex);