diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-10-05 21:55:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-10-06 03:39:58 +0900 |
commit | a5cc6341c0688c346f70098652b2375c03df40aa (patch) | |
tree | 3e28774e55d1a6db1c0759c744e58109c6c0c297 /parse.y | |
parent | cf1223348a94000ff79d21ff3ecf6bd9ae7e8677 (diff) |
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 'parse.y')
-rw-r--r-- | parse.y | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -14142,13 +14142,8 @@ ret_args(struct parser_params *p, NODE *node) { if (node) { no_blockarg(p, node); - if (nd_type_p(node, NODE_LIST)) { - if (RNODE_LIST(node)->nd_next == 0) { - node = RNODE_LIST(node)->nd_head; - } - else { - nd_set_type(node, NODE_VALUES); - } + if (nd_type_p(node, NODE_LIST) && !RNODE_LIST(node)->nd_next) { + node = RNODE_LIST(node)->nd_head; } } return node; |