aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorHParker <HParker@github.com>2023-12-05 16:57:29 -0800
committerYusuke Endoh <mame@ruby-lang.org>2023-12-06 10:21:12 +0900
commitb8b319dd1a48b695df8982eacf8b1ee0004c7a8b (patch)
treec19bbf39c3146c43fcc157ca27e931c76d386530 /iseq.c
parentc146da50bd8ae42236987f33dd3d4d12cb40a559 (diff)
downloadruby-b8b319dd1a48b695df8982eacf8b1ee0004c7a8b.tar.gz
Revert "allow enabling Prism via flag or env var"
This reverts commit 9b76c7fc89460ed8e9be40e4037c1d68395c0f6d.
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/iseq.c b/iseq.c
index 5dc600e3b5..47d19a98f3 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1487,23 +1487,6 @@ iseqw_s_compile_file_prism(int argc, VALUE *argv, VALUE self)
return iseqw_new(iseq);
}
-rb_iseq_t *
-rb_iseq_new_main_prism(pm_string_t *input, pm_options_t *options, VALUE path)
-{
- pm_parser_t parser;
- pm_parser_init(&parser, pm_string_source(input), pm_string_length(input), options);
-
- if (NIL_P(path)) path = rb_fstring_lit("<compiled>");
- int start_line = 0;
- pm_options_line_set(options, start_line);
-
- rb_iseq_t *iseq = iseq_alloc();
- iseqw_s_compile_prism_compile(&parser, Qnil, iseq, path, path, start_line);
-
- pm_parser_free(&parser);
- return iseq;
-}
-
/*
* call-seq:
* InstructionSequence.compile_file(file[, options]) -> iseq