Skip to content

Commit ad4b4f2

Browse files
committed
Remove dead rb_obj_is_main_ractor
1 parent 027f4aa commit ad4b4f2

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

gc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ rb_gc_multi_ractor_p(void)
332332
return rb_multi_ractor_p();
333333
}
334334

335-
bool rb_obj_is_main_ractor(VALUE gv);
336-
337335
bool
338336
rb_gc_shutdown_call_finalizer_p(VALUE obj)
339337
{

ractor.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -585,14 +585,6 @@ rb_ractor_main_p_(void)
585585
return rb_ec_ractor_ptr(ec) == rb_ec_vm_ptr(ec)->ractor.main_ractor;
586586
}
587587

588-
bool
589-
rb_obj_is_main_ractor(VALUE gv)
590-
{
591-
if (!rb_ractor_p(gv)) return false;
592-
rb_ractor_t *r = DATA_PTR(gv);
593-
return r == GET_VM()->ractor.main_ractor;
594-
}
595-
596588
int
597589
rb_ractor_living_thread_num(const rb_ractor_t *r)
598590
{

0 commit comments

Comments
 (0)