summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-04 09:05:55 +0200
committerJean Boussier <[email protected]>2025-06-04 13:13:50 +0200
commit675f33508cc08cbd17ff8dc1b14bbbe256a709ba ()
tree297157b7801b54afd789a032b616f15f8d16e671 /variable.c
parent8d49c05c134702c321198b70fbbf34dd80cc1ba6 (diff)
Get rid of TOO_COMPLEX shape type
Instead it's now a `shape_id` flag. This allows to check if an object is complex without having to chase the `rb_shape_t` pointer.
Notes: Merged: https://.com/ruby/ruby/pull/13511
-rw-r--r--variable.c4
1 files changed, 0 insertions, 4 deletions
@@ -2240,10 +2240,6 @@ iterate_over_shapes_with_callback(rb_shape_t *shape, rb_ivar_foreach_callback_fu
}
}
return false;
- case SHAPE_OBJ_TOO_COMPLEX:
- default:
- rb_bug("Unreachable");
- UNREACHABLE_RETURN(false);
}
}