From 12086b974ac2a3bcbaa4c5ccd108696c544bec07 Mon Sep 17 00:00:00 2001 From: Emmanuel Marty Date: Mon, 8 Jul 2019 17:57:36 +0200 Subject: [PATCH] Fix comments, remove unused vars --- src/shrink_block_v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrink_block_v2.c b/src/shrink_block_v2.c index ef71155..29a7983 100644 --- a/src/shrink_block_v2.c +++ b/src/shrink_block_v2.c @@ -445,6 +445,7 @@ static void lzsa_optimize_matches_v2(lzsa_compressor *pCompressor, const int nSt * impacting the compression ratio * * @param pCompressor compression context + * @param pBestMatch optimal matches to evaluate and update * @param nStartOffset current offset in input window (typically the number of previously compressed bytes) * @param nEndOffset offset to end finding matches at (typically the size of the total input window in bytes * @@ -754,13 +755,12 @@ static void lzsa_optimize_forward_v2(lzsa_compressor *pCompressor, const int nSt * @param nStartOffset current offset in input window (typically the number of previously compressed bytes) * @param nEndOffset offset to end finding matches at (typically the size of the total input window in bytes * - * @return compressed size + * @return compressed size, in bits */ static int lzsa_get_compressed_size_v2(lzsa_compressor *pCompressor, lzsa_match *pBestMatch, const int nStartOffset, const int nEndOffset) { int i; int nNumLiterals = 0; int nCompressedSize = 0; - int nCurNibbleOffset = -1, nCurFreeNibbles = 0; int nRepMatchOffset = 0; for (i = nStartOffset; i < nEndOffset; ) {