bevy/crates/bevy_ecs/src/system
Eagster bfc76c589e
Remove insert_or_spawn function family (#18148)
# Objective

Based on and closes #18054, this PR builds on #18035 and #18147 to
remove:

- `Commands::insert_or_spawn_batch`
- `Entities::alloc_at_without_replacement`
- `Entities::alloc_at`
- `entity::AllocAtWithoutReplacement`
- `World::insert_or_spawn_batch`
- `World::insert_or_spawn_batch_with_caller`

## Testing

Just removing unused, deprecated code, so no new tests. Note that as of
writing, #18035 is still under testing and review.

## Future Work

Per
[this](https://github.com/bevyengine/bevy/issues/18054#issuecomment-2689088899)
comment on #18054, there may be additional performance improvements
possible to the entity allocator now that `alloc_at` no longer is
supported. At a glance, I don't see anything obvious to improve, but it
may be worth further investigation in the future.

---------

Co-authored-by: JaySpruce <jsprucebruce@gmail.com>
2025-05-05 23:14:32 +00:00
..
commands Remove insert_or_spawn function family (#18148) 2025-05-05 23:14:32 +00:00
adapter_system.rs Stop using ArchetypeComponentId in the executor (#16885) 2025-05-05 22:52:44 +00:00
builder.rs Create a When system param wrapper for skipping systems that fail validation (#18765) 2025-05-04 08:41:42 +00:00
combinator.rs Stop using ArchetypeComponentId in the executor (#16885) 2025-05-05 22:52:44 +00:00
exclusive_function_system.rs Stop using ArchetypeComponentId in the executor (#16885) 2025-05-05 22:52:44 +00:00
exclusive_system_param.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
function_system.rs Stop using ArchetypeComponentId in the executor (#16885) 2025-05-05 22:52:44 +00:00
input.rs bevy_ecs: Apply #![warn(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17335) 2025-01-14 21:37:41 +00:00
mod.rs Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 19:59:48 +00:00
observer_system.rs Stop using ArchetypeComponentId in the executor (#16885) 2025-05-05 22:52:44 +00:00
query.rs Add #[deprecated(since = "0.16.0", ...)] to items missing it (#18702) 2025-04-03 17:06:01 +00:00
schedule_system.rs Stop using ArchetypeComponentId in the executor (#16885) 2025-05-05 22:52:44 +00:00
system_name.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
system_param.rs Create a When system param wrapper for skipping systems that fail validation (#18765) 2025-05-04 08:41:42 +00:00
system_registry.rs Include SystemParamValidationError in RunSystemError and RegisteredSystemError (#18666) 2025-04-01 19:27:08 +00:00
system.rs Stop using ArchetypeComponentId in the executor (#16885) 2025-05-05 22:52:44 +00:00