These counters are written to, but they are never read. Remove them for
easier code audits.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
int compression_level;
#if defined(HAVE_BZLIB_H) && defined(BZ_CONFIG_ERROR)
bz_stream stream;
- int64_t total_in;
char *compressed;
size_t compressed_buffer_size;
#else
{
struct private_data *data = (struct private_data *)f->data;
- /* Update statistics */
- data->total_in += length;
-
/* Compress input data to output buffer */
SET_NEXT_IN(data, buff);
data->stream.avail_in = (uint32_t)length;
unsigned preset_dictionary:1;
unsigned block_maximum_size:3;
#if defined(HAVE_LIBLZ4) && LZ4_VERSION_MAJOR >= 1 && LZ4_VERSION_MINOR >= 2
- int64_t total_in;
char *out;
char *out_buffer;
size_t out_buffer_size;
data->header_written = 1;
}
- /* Update statistics */
- data->total_in += length;
-
p = (const char *)buff;
remaining = length;
while (remaining) {
size_t cur_frame;
size_t cur_frame_in;
size_t cur_frame_out;
- size_t total_in;
ZSTD_CStream *cstream;
ZSTD_outBuffer out;
#else
data->state = running;
break;
}
- data->total_in += in.pos - ipos;
data->cur_frame_in += in.pos - ipos;
data->cur_frame_out += data->out.pos - opos;
if (data->state == running) {