summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-31 22:21:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-31 22:24:00 +0900
commit63f70eb65160a53443ec76365e78a80948b54824 (patch)
treee4ddee5e7899a8a02189b957024efbcda3a22b89 /ext/zlib/zlib.c
parent0aaa15f6362e307c9ef636e9625027b96e577dfb (diff)
[ruby/zlib] Removed no longer used variables
https://github.com/ruby/zlib/commit/3e98e4cac3
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index a7d0bc1136..2d938199b3 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -628,7 +628,6 @@ zstream_expand_buffer(struct zstream *z)
long buf_filled = ZSTREAM_BUF_FILLED(z);
if (buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) {
int state = 0;
- VALUE self = (VALUE)z->stream.opaque;
rb_obj_reveal(z->buf, rb_cString);
@@ -738,7 +737,7 @@ zstream_append_buffer(struct zstream *z, const Bytef *src, long len)
static VALUE
zstream_detach_buffer(struct zstream *z)
{
- VALUE dst, self = (VALUE)z->stream.opaque;
+ VALUE dst;
if (!ZSTREAM_IS_FINISHED(z) && !ZSTREAM_IS_GZFILE(z) &&
rb_block_given_p()) {