From ad46d47e6ab48d3a19457bd613d2fd8ff84f9a0e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 14 Jul 2005 16:18:44 +0000 Subject: [PATCH] * enum.c (enum_member): Enumerable#member? is not an iterator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/enum.c b/enum.c index 2b572c85ba..1f9a15f2d0 100644 --- a/enum.c +++ b/enum.c @@ -870,8 +870,6 @@ enum_member(obj, val) { VALUE memo[2]; - if (!rb_block_given_p()) return enumeratorize(1, &val, obj); - memo[0] = val; memo[1] = Qfalse; rb_iterate(rb_each, obj, member_i, (VALUE)memo);