Remove unused function from `struct rb_parser_config_struct`
authoryui-knk <[email protected]>
Wed, 10 Apr 2024 09:30:20 +0000 (10 18:30 +0900)
committerYuichiro Kaneko <[email protected]>
Thu, 11 Apr 2024 02:56:28 +0000 (11 11:56 +0900)
ruby_parser.c
rubyparser.h
universal_parser.c

index 2d914e8..12bfb18 100644 (file)
@@ -567,7 +567,6 @@ static const rb_parser_config_t rb_global_parser_config = {
     .qnil = Qnil,
     .qtrue = Qtrue,
     .qfalse = Qfalse,
-    .qundef = Qundef,
     .eArgError = arg_error,
     .long2int = rb_long2int,
 
index 268e8de..5ba2da8 100644 (file)
@@ -1408,7 +1408,6 @@ typedef struct rb_parser_config_struct {
     VALUE qnil;
     VALUE qtrue;
     VALUE qfalse;
-    VALUE qundef;
     VALUE (*eArgError)(void);
     int (*long2int)(long);
 
index ecbc242..e6822c1 100644 (file)
 #define Qtrue p->config->qtrue
 #undef Qfalse
 #define Qfalse p->config->qfalse
-#undef Qundef
-#define Qundef p->config->qundef
 #define rb_eArgError p->config->eArgError()
 #undef rb_long2int
 #define rb_long2int p->config->long2int