From fa03024f577c61d1a0fc378e926453a8be754c85 Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 10 Dec 2009 08:24:11 +0000 Subject: * vm_eval.c (yield_under): yields self the same as 1.8. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index af0a4884d..f0b23168f 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1172,12 +1172,7 @@ yield_under(VALUE under, VALUE self, VALUE values) cref->flags |= NODE_FL_CREF_PUSHED_BY_EVAL; if (values == Qundef) { -#if 0 - /* The behavior of Ruby 1.8 */ return vm_yield_with_cref(th, 1, &self, cref); -#else - return vm_yield_with_cref(th, 0, 0, cref); -#endif } else { return vm_yield_with_cref(th, RARRAY_LENINT(values), RARRAY_PTR(values), cref); -- cgit