diff --git a/ext/cbor/buffer_class.c b/ext/cbor/buffer_class.c index a302c90..14300dd 100644 --- a/ext/cbor/buffer_class.c +++ b/ext/cbor/buffer_class.c @@ -73,8 +73,6 @@ static ID get_partial_read_method(VALUE io) { if(rb_respond_to(io, s_readpartial)) { return s_readpartial; - } else if(rb_respond_to(io, s_read)) { - return s_read; } else { return s_read; }