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.
This commit is contained in:
Jean Boussier 2025-06-04 09:05:55 +02:00
parent 8d49c05c13
commit 675f33508c
Notes: git 2025-06-04 11:14:02 +00:00
13 changed files with 82 additions and 118 deletions

View file

@ -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);
}
}