diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-05-30 22:36:48 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-06-03 15:40:38 +0900 |
commit | c2805192561ad9690b55c14aaccece1804b61a21 (patch) | |
tree | 6e88602b770d11e9a4cade62ce2b93b0e070fc30 /gc.c | |
parent | c990b3c41af5957a739dfb235dfbb821e73a74df (diff) | |
download | bundler-c2805192561ad9690b55c14aaccece1804b61a21.tar.gz |
remove `rb_objspace_pinned_object_p()`
Nobody uses this function other than gc.c. We only need
RVALUE_PINNED().
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -4941,12 +4941,6 @@ rb_objspace_marked_object_p(VALUE obj) return RVALUE_MARKED(obj) ? TRUE : FALSE; } -int -rb_objspace_pinned_object_p(VALUE obj) -{ - return RVALUE_PINNED(obj) ? TRUE : FALSE; -} - static inline void gc_mark_set_parent(rb_objspace_t *objspace, VALUE obj) { @@ -7335,7 +7329,7 @@ gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj) return FALSE; } } - return !rb_objspace_pinned_object_p(obj); + return !RVALUE_PINNED(obj); break; default: |