Skip to content

Commit 7c4692d

Browse files
kddnewtonrafaelfranca
authored andcommitted
[PRISM] Source file no longer static literal
1 parent 4f649a7 commit 7c4692d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎prism_compile.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -920,10 +920,6 @@ pm_static_literal_value(rb_iseq_t *iseq, const pm_node_t *node, pm_scope_node_t
920920
}
921921
case PM_SOURCE_ENCODING_NODE:
922922
return rb_enc_from_encoding(scope_node->encoding);
923-
case PM_SOURCE_FILE_NODE: {
924-
const pm_source_file_node_t *cast = (const pm_source_file_node_t *) node;
925-
return pm_source_file_value(cast, scope_node);
926-
}
927923
case PM_SOURCE_LINE_NODE:
928924
return INT2FIX(pm_node_line_number_cached(node, scope_node));
929925
case PM_STRING_NODE: {
@@ -7602,7 +7598,6 @@ pm_compile_case_node_dispatch(rb_iseq_t *iseq, VALUE dispatch, const pm_node_t *
76027598
case PM_FALSE_NODE:
76037599
case PM_INTEGER_NODE:
76047600
case PM_NIL_NODE:
7605-
case PM_SOURCE_FILE_NODE:
76067601
case PM_SOURCE_LINE_NODE:
76077602
case PM_SYMBOL_NODE:
76087603
case PM_TRUE_NODE:

0 commit comments

Comments
 (0)