From a5cc6341c0688c346f70098652b2375c03df40aa Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 5 Oct 2023 21:55:24 +0900 Subject: 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. --- compile.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'compile.c') 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; -- cgit v1.2.3