aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/compression
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-24 15:44:08 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-24 15:50:25 -0800
commit9b070fa2defef895d8ddae5609c82cd5e7b332b6 (patch)
tree28ed8b339b4a6bfd3a0bfe9e0f367c4a77c2570f /src/core/compression
parentf7c87c2741e18e9fb481252151f14fff8ed026d3 (diff)
Remove unused variable
Diffstat (limited to 'src/core/compression')
-rw-r--r--src/core/compression/message_compress.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/compression/message_compress.c b/src/core/compression/message_compress.c
index 9b8100a3d6..7856f40dd1 100644
--- a/src/core/compression/message_compress.c
+++ b/src/core/compression/message_compress.c
@@ -48,7 +48,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input,
int r;
int flush;
size_t i;
- size_t output_bytes = 0;
gpr_slice outbuf = gpr_slice_malloc(OUTPUT_BLOCK_SIZE);
zs->avail_out = GPR_SLICE_LENGTH(outbuf);
@@ -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]);
do {
if (zs->avail_out == 0) {
- output_bytes += GPR_SLICE_LENGTH(outbuf);
gpr_slice_buffer_add_indexed(output, outbuf);
outbuf = gpr_slice_malloc(OUTPUT_BLOCK_SIZE);
zs->avail_out = GPR_SLICE_LENGTH(outbuf);
@@ -80,7 +78,6 @@ static int zlib_body(z_stream *zs, gpr_slice_buffer *input,
GPR_ASSERT(outbuf.refcount);
outbuf.data.refcounted.length -= zs->avail_out;
- output_bytes += GPR_SLICE_LENGTH(outbuf);
gpr_slice_buffer_add_indexed(output, outbuf);
return 1;