diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2023-11-21 12:09:13 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-11-21 15:15:03 +0100 |
commit | b4f551686b973b03665bcaa3ecf128c0a87ff58b (patch) | |
tree | dca4ec9782eb66ed6ed0ce5aee21cea36377d745 /proc.c | |
parent | fafdc8a62bd17f0e015fc99840dba7ce8aa4547c (diff) |
Get rid of useless dsize functions
If we always return 0, we might as well not define
the function at all.
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1597,18 +1597,12 @@ bm_mark_and_move(void *ptr) rb_gc_mark_and_move_ptr((rb_method_entry_t **)&data->me); } -static size_t -bm_memsize(const void *ptr) -{ - return 0; -} - static const rb_data_type_t method_data_type = { "method", { bm_mark_and_move, RUBY_TYPED_DEFAULT_FREE, - bm_memsize, + NULL, // No external memory to report, bm_mark_and_move, }, 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_EMBEDDABLE |