1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/zlib] Removed no longer used variables

https://github.com/ruby/zlib/commit/3e98e4cac3
This commit is contained in:
Nobuyoshi Nakada 2019-10-31 22:21:11 +09:00
parent 0aaa15f636
commit 63f70eb651

View file

@ -628,7 +628,6 @@ zstream_expand_buffer(struct zstream *z)
long buf_filled = ZSTREAM_BUF_FILLED(z); long buf_filled = ZSTREAM_BUF_FILLED(z);
if (buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) { if (buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) {
int state = 0; int state = 0;
VALUE self = (VALUE)z->stream.opaque;
rb_obj_reveal(z->buf, rb_cString); rb_obj_reveal(z->buf, rb_cString);
@ -738,7 +737,7 @@ zstream_append_buffer(struct zstream *z, const Bytef *src, long len)
static VALUE static VALUE
zstream_detach_buffer(struct zstream *z) zstream_detach_buffer(struct zstream *z)
{ {
VALUE dst, self = (VALUE)z->stream.opaque; VALUE dst;
if (!ZSTREAM_IS_FINISHED(z) && !ZSTREAM_IS_GZFILE(z) && if (!ZSTREAM_IS_FINISHED(z) && !ZSTREAM_IS_GZFILE(z) &&
rb_block_given_p()) { rb_block_given_p()) {