summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-14 16:27:37 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-04-16 11:06:31 -0400
commit24b137336b71f77bf9ae9c532c0a5520709f73e8 (patch)
tree7d31e2d9cfa29e638144d666a262b76bb47861c9 /shape.c
parentd7bb7e70cc954925d896a4185d9eb28cee2c2b6f (diff)
downloadruby-24b137336b71f77bf9ae9c532c0a5520709f73e8.tar.gz
Move shape ID to flags for classes on 32 bit
Moves shape ID to FL_USER4 to FL_USER19 for the shape ID on 32 bit systems. This makes the rb_classext_struct smaller so that it can be embedded.
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/shape.c b/shape.c
index 05e5d76f60..5694833bfa 100644
--- a/shape.c
+++ b/shape.c
@@ -69,13 +69,6 @@ rb_shape_get_parent(rb_shape_t * shape)
}
#if !SHAPE_IN_BASIC_FLAGS
-shape_id_t
-rb_rclass_shape_id(VALUE obj)
-{
- RUBY_ASSERT(RB_TYPE_P(obj, T_CLASS) || RB_TYPE_P(obj, T_MODULE));
- return RCLASS_EXT(obj)->shape_id;
-}
-
shape_id_t rb_generic_shape_id(VALUE obj);
#endif