aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/vm.c b/vm.c
index 94d3034dbf..7bd77399ee 100644
--- a/vm.c
+++ b/vm.c
@@ -718,17 +718,6 @@ th_yield_setup_args(rb_thread_t *th, rb_iseq_t *iseq,
}
if (iseq->arg_rest == -1) {
- if (lambda == 0 && iseq->argc == 1) {
- if (argc > 1) {
- /* yield 1, 2, 3 for iter{|a| ...}
- *
- * ruby 1.8 warns on this timing.
- * rb_warn("multiple values for a block parameter (%d for %d)", argc, iseq->argc);
- */
- argv[0] = rb_ary_new4(argc, argv);
- th->mark_stack_len = argc = 1;
- }
- }
if (iseq->argc < argc) {
if (lambda) {