diff --git a/crates/bevy_ecs/src/hierarchy.rs b/crates/bevy_ecs/src/hierarchy.rs index bde9526d72136..7abf918201e4b 100644 --- a/crates/bevy_ecs/src/hierarchy.rs +++ b/crates/bevy_ecs/src/hierarchy.rs @@ -537,7 +537,6 @@ pub fn validate_parent_has_component( /// # use bevy_ecs::name::Name; /// # use bevy_ecs::world::World; /// # use bevy_ecs::children; -/// # use bevy_ecs::spawn::{Spawn, SpawnRelated}; /// let mut world = World::new(); /// world.spawn(( /// Name::new("Root"), @@ -557,7 +556,7 @@ pub fn validate_parent_has_component( #[macro_export] macro_rules! children { [$($child:expr),*$(,)?] => { - $crate::hierarchy::Children::spawn($crate::recursive_spawn!($($child),*)) + $crate::related!($crate::hierarchy::Children [$($child),*]) }; } diff --git a/crates/bevy_feathers/src/controls/color_plane.rs b/crates/bevy_feathers/src/controls/color_plane.rs index c39c5432c8d65..c0398fe8b47cb 100644 --- a/crates/bevy_feathers/src/controls/color_plane.rs +++ b/crates/bevy_feathers/src/controls/color_plane.rs @@ -9,7 +9,6 @@ use bevy_ecs::{ observer::On, query::{Changed, Has, Or, With}, reflect::ReflectComponent, - spawn::SpawnRelated, system::{Commands, Query, Res, ResMut}, }; use bevy_math::{Vec2, Vec3}; diff --git a/crates/bevy_feathers/src/controls/color_slider.rs b/crates/bevy_feathers/src/controls/color_slider.rs index 348bd0d50c18c..8626223821355 100644 --- a/crates/bevy_feathers/src/controls/color_slider.rs +++ b/crates/bevy_feathers/src/controls/color_slider.rs @@ -11,7 +11,6 @@ use bevy_ecs::{ hierarchy::Children, query::{Changed, Or, With}, schedule::IntoScheduleConfigs, - spawn::SpawnRelated, system::Query, }; use bevy_input_focus::tab_navigation::TabIndex; diff --git a/crates/bevy_feathers/src/controls/color_swatch.rs b/crates/bevy_feathers/src/controls/color_swatch.rs index 0214aa90be4a9..fcc8b1386fb33 100644 --- a/crates/bevy_feathers/src/controls/color_swatch.rs +++ b/crates/bevy_feathers/src/controls/color_swatch.rs @@ -8,7 +8,6 @@ use bevy_ecs::{ hierarchy::Children, query::Changed, reflect::ReflectComponent, - spawn::SpawnRelated, system::{Commands, Query}, }; use bevy_reflect::{prelude::ReflectDefault, Reflect}; diff --git a/crates/bevy_feathers/src/controls/slider.rs b/crates/bevy_feathers/src/controls/slider.rs index 00724843f1bcc..7008e632f1f33 100644 --- a/crates/bevy_feathers/src/controls/slider.rs +++ b/crates/bevy_feathers/src/controls/slider.rs @@ -12,7 +12,6 @@ use bevy_ecs::{ query::{Added, Changed, Has, Or, Spawned, With}, reflect::ReflectComponent, schedule::IntoScheduleConfigs, - spawn::SpawnRelated, system::{Commands, Query, Res}, }; use bevy_input_focus::tab_navigation::TabIndex; diff --git a/crates/bevy_feathers/src/controls/toggle_switch.rs b/crates/bevy_feathers/src/controls/toggle_switch.rs index 2d338fb668227..c55ec725bcc14 100644 --- a/crates/bevy_feathers/src/controls/toggle_switch.rs +++ b/crates/bevy_feathers/src/controls/toggle_switch.rs @@ -11,7 +11,6 @@ use bevy_ecs::{ query::{Added, Changed, Has, Or, With}, reflect::ReflectComponent, schedule::IntoScheduleConfigs, - spawn::SpawnRelated, system::{Commands, Query}, world::Mut, };