From b98f8410fefa5fc38d1b1dcf5374e86c310de8e2 Mon Sep 17 00:00:00 2001 From: Emmanuel Marty Date: Fri, 6 Nov 2020 16:26:37 +0100 Subject: [PATCH] Remove unneeded code --- src/shrink_block_v2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shrink_block_v2.c b/src/shrink_block_v2.c index b95351c..0aba0c0 100644 --- a/src/shrink_block_v2.c +++ b/src/shrink_block_v2.c @@ -478,10 +478,9 @@ static void lzsa_optimize_forward_v2(lzsa_compressor *pCompressor, const unsigne lzsa_arrival *pDestSlots = &cur_arrival[k << ARRIVALS_PER_POSITION_SHIFT]; - /* Insert non-repmatch candidates */ + /* Insert non-repmatch candidate */ if (nNonRepMatchArrivalIdx >= 0) { - int nRepOffset = cur_arrival[nNonRepMatchArrivalIdx].rep_offset; const int nPrevCost = cur_arrival[nNonRepMatchArrivalIdx].cost & 0x3fffffff; int nCodingChoiceCost = nPrevCost /* the actual cost of the literals themselves accumulates up the chain */ + nMatchLenCost + nNoRepmatchOffsetCost;