Skip to content

Commit cee985e

Browse files
committed
Remove unused functions from struct rb_parser_config_struct
1 parent d07df85 commit cee985e

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

ruby_parser.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,6 @@ reg_named_capture_assign(struct parser_params* p, VALUE regexp, const rb_code_lo
250250
return RNODE_BLOCK(arg.succ_block)->nd_next;
251251
}
252252

253-
static VALUE
254-
rbool(VALUE v)
255-
{
256-
return RBOOL(v);
257-
}
258-
259253
static int
260254
rtest(VALUE obj)
261255
{
@@ -499,7 +493,6 @@ static const rb_parser_config_t rb_global_parser_config = {
499493
.scan_digits = ruby_scan_digits,
500494
.strtod = ruby_strtod,
501495

502-
.rbool = rbool,
503496
.rtest = rtest,
504497
.nil_p = nil_p,
505498
.qnil = Qnil,

rubyparser.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,6 @@ typedef struct rb_parser_config_struct {
14011401
double (*strtod)(const char *s00, char **se);
14021402

14031403
/* Misc */
1404-
VALUE (*rbool)(VALUE);
14051404
int (*rtest)(VALUE obj);
14061405
int (*nil_p)(VALUE obj);
14071406
VALUE qnil;

universal_parser.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@
223223
#define ruby_scan_digits p->config->scan_digits
224224
#define strtod p->config->strtod
225225

226-
#undef RBOOL
227-
#define RBOOL p->config->rbool
228226
#undef RTEST
229227
#define RTEST p->config->rtest
230228
#undef NIL_P

0 commit comments

Comments
 (0)