mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove SCRIPT_LINES__ related member functions
This commit is contained in:
parent
6aa16f9ec1
commit
503f98ebd3
Notes:
git
2023-08-25 09:23:26 +00:00
2 changed files with 0 additions and 30 deletions
|
@ -117,12 +117,6 @@ syntax_error_append(VALUE exc, VALUE file, int line, int column,
|
|||
return rb_syntax_error_append(exc, file, line, column, (rb_encoding *)enc, fmt, args);
|
||||
}
|
||||
|
||||
static int
|
||||
vm_keep_script_lines(void)
|
||||
{
|
||||
return ruby_vm_keep_script_lines;
|
||||
}
|
||||
|
||||
static int
|
||||
local_defined(ID id, const void *p)
|
||||
{
|
||||
|
@ -401,24 +395,6 @@ int2fix(long i)
|
|||
return INT2FIX(i);
|
||||
}
|
||||
|
||||
static int
|
||||
script_lines_defined(void)
|
||||
{
|
||||
ID script_lines;
|
||||
CONST_ID(script_lines, "SCRIPT_LINES__");
|
||||
|
||||
return rb_const_defined_at(rb_cObject, script_lines);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
script_lines_get(void)
|
||||
{
|
||||
ID script_lines;
|
||||
CONST_ID(script_lines, "SCRIPT_LINES__");
|
||||
|
||||
return rb_const_get_at(rb_cObject, script_lines);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
syntax_error_new(void)
|
||||
{
|
||||
|
@ -597,8 +573,6 @@ rb_parser_config_initialize(rb_parser_config_t *config)
|
|||
|
||||
config->compile_callback = rb_suppress_tracing;
|
||||
config->reg_named_capture_assign = reg_named_capture_assign;
|
||||
config->script_lines_defined = script_lines_defined;
|
||||
config->script_lines_get = script_lines_get;
|
||||
|
||||
config->obj_freeze = rb_obj_freeze;
|
||||
config->obj_hide = rb_obj_hide;
|
||||
|
@ -743,7 +717,6 @@ rb_parser_config_initialize(rb_parser_config_t *config)
|
|||
|
||||
config->ractor_make_shareable = rb_ractor_make_shareable;
|
||||
|
||||
config->vm_keep_script_lines = vm_keep_script_lines;
|
||||
config->local_defined = local_defined;
|
||||
config->dvar_defined = dvar_defined;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue