aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-05 21:55:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-06 03:39:58 +0900
commita5cc6341c0688c346f70098652b2375c03df40aa (patch)
tree3e28774e55d1a6db1c0759c744e58109c6c0c297 /compile.c
parentcf1223348a94000ff79d21ff3ecf6bd9ae7e8677 (diff)
downloadruby-a5cc6341c0688c346f70098652b2375c03df40aa.tar.gz
Remove `NODE_VALUES`
This node type was added for the multi-value experiment back in 2004. The feature itself was removed after a few years, but this is its remnant.
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/compile.c b/compile.c
index 4850ba9b2c..483d2f118d 100644
--- a/compile.c
+++ b/compile.c
@@ -9724,18 +9724,6 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const no
}
break;
}
- case NODE_VALUES:{
- const NODE *n = node;
- if (popped) {
- COMPILE_ERROR(ERROR_ARGS "NODE_VALUES: must not be popped");
- }
- while (n) {
- CHECK(COMPILE(ret, "values item", RNODE_VALUES(n)->nd_head));
- n = RNODE_VALUES(n)->nd_next;
- }
- ADD_INSN1(ret, node, newarray, INT2FIX(RNODE_VALUES(node)->nd_alen));
- break;
- }
case NODE_HASH:
CHECK(compile_hash(iseq, ret, node, FALSE, popped) >= 0);
break;