diff options
author | yui-knk <[email protected]> | 2024-02-18 18:33:29 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-02-21 13:36:45 +0900 |
commit | 91cb30353178004ba57acacf1c39d9c02beff86e (patch) | |
tree | d81fb21538954b6ad86160463924fb3682be9f42 /ruby_parser.c | |
parent | d0786cde3f70e023332d97e629ea273c6e4d56c6 (diff) |
Remove not used universal parser macros and functions
Diffstat (limited to 'ruby_parser.c')
-rw-r--r-- | ruby_parser.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ruby_parser.c b/ruby_parser.c index c233b9801b..7b6f0dfbc3 100644 --- a/ruby_parser.c +++ b/ruby_parser.c @@ -402,12 +402,6 @@ rb_errno_ptr2(void) } static int -type_p(VALUE obj, int t) -{ - return (int)RB_TYPE_P(obj, t); -} - -static int fixnum_p(VALUE obj) { return (int)RB_FIXNUM_P(obj); @@ -449,18 +443,6 @@ ruby_vm_frozen_core(void) return rb_mRubyVMFrozenCore; } -static int -special_const_p(VALUE obj) -{ - return (int)RB_SPECIAL_CONST_P(obj); -} - -static int -builtin_type(VALUE obj) -{ - return (int)RB_BUILTIN_TYPE(obj); -} - static rb_ast_t * ast_new(VALUE nb) { @@ -506,7 +488,6 @@ static const rb_parser_config_t rb_global_parser_config = { .obj_freeze = rb_obj_freeze, .obj_hide = rb_obj_hide, - .type_p = type_p, .obj_freeze_raw = OBJ_FREEZE_RAW, .fixnum_p = fixnum_p, @@ -638,7 +619,6 @@ static const rb_parser_config_t rb_global_parser_config = { .sized_realloc_n = ruby_sized_realloc_n, .obj_write = obj_write, .obj_written = obj_written, - .gc_register_mark_object = rb_gc_register_mark_object, .gc_guard = gc_guard, .gc_mark = rb_gc_mark, .gc_mark_and_move = rb_gc_mark_and_move, @@ -673,8 +653,6 @@ static const rb_parser_config_t rb_global_parser_config = { .eArgError = arg_error, .mRubyVMFrozenCore = ruby_vm_frozen_core, .long2int = rb_long2int, - .special_const_p = special_const_p, - .builtin_type = builtin_type, .node_case_when_optimizable_literal = rb_node_case_when_optimizable_literal, |