Skip to content
Snippets Groups Projects
Commit 9b070fa2 authored by Craig Tiller's avatar Craig Tiller
Browse files

Remove unused variable

parent f7c87c27
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input, ...@@ -48,7 +48,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input,
int r; int r;
int flush; int flush;
size_t i; size_t i;
size_t output_bytes = 0;
gpr_slice outbuf = gpr_slice_malloc(OUTPUT_BLOCK_SIZE); gpr_slice outbuf = gpr_slice_malloc(OUTPUT_BLOCK_SIZE);
zs->avail_out = GPR_SLICE_LENGTH(outbuf); zs->avail_out = GPR_SLICE_LENGTH(outbuf);
...@@ -60,7 +59,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input, ...@@ -60,7 +59,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input,
zs->next_in = GPR_SLICE_START_PTR(input->slices[i]); zs->next_in = GPR_SLICE_START_PTR(input->slices[i]);
do { do {
if (zs->avail_out == 0) { if (zs->avail_out == 0) {
output_bytes += GPR_SLICE_LENGTH(outbuf);
gpr_slice_buffer_add_indexed(output, outbuf); gpr_slice_buffer_add_indexed(output, outbuf);
outbuf = gpr_slice_malloc(OUTPUT_BLOCK_SIZE); outbuf = gpr_slice_malloc(OUTPUT_BLOCK_SIZE);
zs->avail_out = GPR_SLICE_LENGTH(outbuf); zs->avail_out = GPR_SLICE_LENGTH(outbuf);
...@@ -80,7 +78,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input, ...@@ -80,7 +78,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input,
GPR_ASSERT(outbuf.refcount); GPR_ASSERT(outbuf.refcount);
outbuf.data.refcounted.length -= zs->avail_out; outbuf.data.refcounted.length -= zs->avail_out;
output_bytes += GPR_SLICE_LENGTH(outbuf);
gpr_slice_buffer_add_indexed(output, outbuf); gpr_slice_buffer_add_indexed(output, outbuf);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment