summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ruby_parser.c7
-rw-r--r--rubyparser.h1
-rw-r--r--universal_parser.c2
3 files changed, 0 insertions, 10 deletions
diff --git a/ruby_parser.c b/ruby_parser.c
index a166f3edb3..b289e91c00 100644
--- a/ruby_parser.c
+++ b/ruby_parser.c
@@ -250,12 +250,6 @@ reg_named_capture_assign(struct parser_params* p, VALUE regexp, const rb_code_lo
return RNODE_BLOCK(arg.succ_block)->nd_next;
}
-static VALUE
-rbool(VALUE v)
-{
- return RBOOL(v);
-}
-
static int
rtest(VALUE obj)
{
@@ -499,7 +493,6 @@ static const rb_parser_config_t rb_global_parser_config = {
.scan_digits = ruby_scan_digits,
.strtod = ruby_strtod,
- .rbool = rbool,
.rtest = rtest,
.nil_p = nil_p,
.qnil = Qnil,
diff --git a/rubyparser.h b/rubyparser.h
index 6d346a7ff4..fdf69a950b 100644
--- a/rubyparser.h
+++ b/rubyparser.h
@@ -1401,7 +1401,6 @@ typedef struct rb_parser_config_struct {
double (*strtod)(const char *s00, char **se);
/* Misc */
- VALUE (*rbool)(VALUE);
int (*rtest)(VALUE obj);
int (*nil_p)(VALUE obj);
VALUE qnil;
diff --git a/universal_parser.c b/universal_parser.c
index 2055681889..f72cd65ddb 100644
--- a/universal_parser.c
+++ b/universal_parser.c
@@ -223,8 +223,6 @@
#define ruby_scan_digits p->config->scan_digits
#define strtod p->config->strtod
-#undef RBOOL
-#define RBOOL p->config->rbool
#undef RTEST
#define RTEST p->config->rtest
#undef NIL_P