aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-11-21 12:09:13 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-11-21 15:15:03 +0100
commitb4f551686b973b03665bcaa3ecf128c0a87ff58b (patch)
treedca4ec9782eb66ed6ed0ce5aee21cea36377d745 /compile.c
parentfafdc8a62bd17f0e015fc99840dba7ce8aa4547c (diff)
downloadruby-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.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/compile.c b/compile.c
index 66eabedd1a..24086730da 100644
--- a/compile.c
+++ b/compile.c
@@ -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
};