Skip to content

Commit 42b4e4a

Browse files
committed
Remove dead code
See https://bugs.ruby-lang.org/issues/21669#note-4 > At line 1067, void_node = vn is executed (and vn is guaranteed to be non-NULL on the line above), so it's impossible for void_node to be NULL at line 1075. Thus, it is indeed dead code.
1 parent 16e5efb commit 42b4e4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/prism.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,9 +1072,6 @@ pm_check_value_expression(pm_parser_t *parser, pm_node_t *node) {
10721072
void_node = NULL;
10731073
break;
10741074
}
1075-
if (void_node == NULL) {
1076-
void_node = vn;
1077-
}
10781075
}
10791076

10801077
if (cast->else_clause != NULL) {

0 commit comments

Comments
 (0)