diff options
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/enumerator.c b/enumerator.c index 7c50f3dda2..34d16c057e 100644 --- a/enumerator.c +++ b/enumerator.c @@ -330,12 +330,6 @@ enumerator_allocate(VALUE klass) } static VALUE -enumerator_each_i(VALUE v, VALUE enum_obj, int argc, VALUE *argv) -{ - return rb_yield_values2(argc, argv); -} - -static VALUE enumerator_init(VALUE enum_obj, VALUE obj, VALUE meth, int argc, VALUE *argv) { struct enumerator *ptr; @@ -473,7 +467,7 @@ static VALUE enumerator_each(VALUE obj) { if (!rb_block_given_p()) return obj; - return enumerator_block_call(obj, enumerator_each_i, obj); + return enumerator_block_call(obj, 0, obj); } static VALUE |