diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-01-30 13:47:56 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-01-30 14:55:20 -0500 |
commit | c4cc3be195825e47a66c7b919454c520e49ea307 (patch) | |
tree | 7009846f3e0dbd48215069f5f1aff1ee5165b06b /shape.c | |
parent | 2e0f3b5546854c98174d4210c0e06c78c8294f98 (diff) | |
download | ruby-c4cc3be195825e47a66c7b919454c520e49ea307.tar.gz |
Remove dead code in shapes.c and shapes.h
Diffstat (limited to 'shape.c')
-rw-r--r-- | shape.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -33,12 +33,6 @@ rb_shape_id(rb_shape_t * shape) return (shape_id_t)(shape - GET_VM()->shape_list); } -bool -rb_shape_root_shape_p(rb_shape_t* shape) -{ - return shape == rb_shape_get_root_shape(); -} - void rb_shape_each_shape(each_shape_callback callback, void *data) { @@ -60,16 +54,6 @@ rb_shape_get_shape_by_id(shape_id_t shape_id) return shape; } -rb_shape_t* -rb_shape_get_shape_by_id_without_assertion(shape_id_t shape_id) -{ - RUBY_ASSERT(shape_id != INVALID_SHAPE_ID); - - rb_vm_t *vm = GET_VM(); - rb_shape_t *shape = &vm->shape_list[shape_id]; - return shape; -} - rb_shape_t * rb_shape_get_parent(rb_shape_t * shape) { |