diff --git a/crates/bevy_ecs/src/schedule/schedule.rs b/crates/bevy_ecs/src/schedule/schedule.rs index cc5e97ac71..0544956678 100644 --- a/crates/bevy_ecs/src/schedule/schedule.rs +++ b/crates/bevy_ecs/src/schedule/schedule.rs @@ -1680,7 +1680,7 @@ impl ScheduleGraph { if set.is_anonymous() { self.anonymous_set_name(id) } else { - set.debug_name() + format!("{set:?}") } } } @@ -1903,7 +1903,7 @@ impl ScheduleGraph { ) -> Result<(), ScheduleBuildError> { for (&key, systems) in set_systems { let set = &self.system_sets.sets[key]; - if set.is_system_type() { + if set.system_type().is_some() { let instances = systems.len(); let ambiguous_with = self.ambiguous_with.edges(NodeId::Set(key)); let before = self @@ -2009,7 +2009,7 @@ impl ScheduleGraph { fn names_of_sets_containing_node(&self, id: &NodeId) -> Vec { let mut sets = >::default(); self.traverse_sets_containing_node(*id, &mut |key| { - !self.system_sets.sets[key].is_system_type() && sets.insert(key) + self.system_sets.sets[key].system_type().is_none() && sets.insert(key) }); let mut sets: Vec<_> = sets .into_iter() diff --git a/crates/bevy_ecs/src/schedule/set.rs b/crates/bevy_ecs/src/schedule/set.rs index 9b437ec01e..b0a3e95cb7 100644 --- a/crates/bevy_ecs/src/schedule/set.rs +++ b/crates/bevy_ecs/src/schedule/set.rs @@ -1,4 +1,4 @@ -use alloc::{boxed::Box, format, string::String}; +use alloc::boxed::Box; use bevy_utils::prelude::DebugName; use core::{ any::TypeId, @@ -175,18 +175,6 @@ define_label!( } ); -impl dyn SystemSet { - /// Returns the name of this system set for debugging purposes. - pub fn debug_name(&self) -> String { - format!("{self:?}") - } - - /// Returns `true` if this system set is a [`SystemTypeSet`]. - pub fn is_system_type(&self) -> bool { - self.system_type().is_some() - } -} - /// A shorthand for `Interned`. pub type InternedSystemSet = Interned; /// A shorthand for `Interned`.