summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-05-27 11:46:02 +0200
committerJean Boussier <[email protected]>2025-05-27 12:45:24 +0200
commitcc48fcdff22689cdca04181105582150b01904a1 (patch)
tree11a3f9d128a34b1f3dc5e12bf4ca139cab1608d6 /shape.h
parent8b0868cbb106c49d8761536abc408dae0b2e1c1c (diff)
Get rid of `rb_shape_canonical_p`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13448
Diffstat (limited to 'shape.h')
-rw-r--r--shape.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/shape.h b/shape.h
index 9a84835e65..9f0d5e8b14 100644
--- a/shape.h
+++ b/shape.h
@@ -151,15 +151,9 @@ rb_obj_shape(VALUE obj)
}
static inline bool
-rb_shape_canonical_p(rb_shape_t *shape)
-{
- return !shape->flags;
-}
-
-static inline bool
rb_shape_id_canonical_p(shape_id_t shape_id)
{
- return rb_shape_canonical_p(RSHAPE(shape_id));
+ return !RSHAPE(shape_id)->flags;
}
static inline shape_id_t