diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-07-25 17:32:51 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2024-07-26 11:44:34 -0400 |
| commit | cef959df905c1189dff463d74498f3bf8dbbc82e (patch) | |
| tree | 3e193db5901b3ca139546b4e0e30af9264e4fd8c | |
| parent | aaa542d894ab36145c02d854b71d77c8dc51c01c (diff) | |
Delete unused rb_gc_impl_get_finalizers() not in gc_impl.h
| -rw-r--r-- | gc/default.c | 15 |
1 files changed, 0 insertions, 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) { |
