From cef959df905c1189dff463d74498f3bf8dbbc82e Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Thu, 25 Jul 2024 17:32:51 -0400 Subject: [PATCH] Delete unused rb_gc_impl_get_finalizers() not in gc_impl.h --- gc/default.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/gc/default.c b/gc/default.c index fc093b1c27..362e5d4938 100644 --- a/gc/default.c +++ b/gc/default.c @@ -3014,21 +3014,6 @@ rb_gc_impl_undefine_finalizer(void *objspace_ptr, VALUE obj) FL_UNSET(obj, FL_FINALIZE); } -VALUE -rb_gc_impl_get_finalizers(void *objspace_ptr, VALUE obj) -{ - rb_objspace_t *objspace = objspace_ptr; - - if (FL_TEST(obj, FL_FINALIZE)) { - st_data_t data; - if (st_lookup(finalizer_table, obj, &data)) { - return (VALUE)data; - } - } - - return Qnil; -} - void rb_gc_impl_copy_finalizer(void *objspace_ptr, VALUE dest, VALUE obj) {