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 /compile.c | |
parent | fafdc8a62bd17f0e015fc99840dba7ce8aa4547c (diff) | |
download | ruby-b4f551686b973b03665bcaa3ecf128c0a87ff58b.tar.gz |
Get rid of useless dsize functions
If we always return 0, we might as well not define
the function at all.
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -11146,15 +11146,13 @@ pinned_list_mark(void *ptr) } } -static size_t -pinned_list_memsize(const void *ptr) -{ - return 0; -} - static const rb_data_type_t pinned_list_type = { "pinned_list", - {pinned_list_mark, RUBY_DEFAULT_FREE, pinned_list_memsize,}, + { + pinned_list_mark, + RUBY_DEFAULT_FREE, + NULL, // No external memory to report, + }, 0, 0, RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_EMBEDDABLE }; |