From: senhuang42 Date: Tue, 27 Oct 2020 16:58:12 +0000 (-0400) Subject: Remove unused variable position X-Git-Tag: v1.4.7~39^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3163909d14d2901179562faa03e2e90d7e19a71d;p=thirdparty%2Fzstd.git Remove unused variable position --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 4091662a9..e2a80accd 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -2450,7 +2450,6 @@ static void ZSTD_copyBlockSequences(ZSTD_CCtx* zc) ZSTD_Sequence* outSeqs = &zc->seqCollector.seqStart[zc->seqCollector.seqIndex]; size_t i; - size_t position; int repIdx; assert(zc->seqCollector.seqIndex + 1 < zc->seqCollector.maxSequences); @@ -2469,17 +2468,6 @@ static void ZSTD_copyBlockSequences(ZSTD_CCtx* zc) } } - /* Repcode handling: - * See docs/format.md for more detail about repeat offset codes - * If litLength != 0: - * rep == 1 --> offset == repeat_offset_1 - * rep == 2 --> offset == repeat_offset_2 - * rep == 3 --> offset == repeat_offset_3 - * If litLength == 0: - * rep == 1 --> offset == repeat_offset_2 - * rep == 2 --> offset == repeat_offset_3 - * rep == 3 --> offset == repeat_offset_1 - 1 - */ if (seqStoreSeqs[i].offset <= ZSTD_REP_NUM) { outSeqs[i].rep = seqStoreSeqs[i].offset; repIdx = (unsigned int)i - seqStoreSeqs[i].offset;