diff options
Diffstat (limited to 'ecs/src/relationship.rs')
-rw-r--r-- | ecs/src/relationship.rs | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/ecs/src/relationship.rs b/ecs/src/relationship.rs index 964a47f..b7c5c02 100644 --- a/ecs/src/relationship.rs +++ b/ecs/src/relationship.rs @@ -14,7 +14,7 @@ use crate::entity::Uid as EntityUid; use crate::lock::{Lock, ReadGuard}; use crate::system::{ComponentRefMut, Input as SystemInput}; use crate::type_name::TypeName; -use crate::{World, WorldData}; +use crate::World; #[derive(Debug)] pub struct Relationship<Kind, ComponentT: Component> @@ -60,28 +60,6 @@ where { self } - - #[cfg_attr(feature = "debug", tracing::instrument(skip_all))] - fn prepare(world_data: &WorldData) - where - Self: Sized, - { - let mut component_storage_lock = world_data - .component_storage - .write_nonblock() - .expect("Failed to acquire read-write component storage lock"); - - #[cfg(feature = "debug")] - tracing::debug!( - "Adding archetypes lookup entry for component: {}", - std::any::type_name::<ComponentT>() - ); - - component_storage_lock.add_archetype_lookup_entry([ComponentMetadata { - id: ComponentId::of::<ComponentT>(), - is_optional: component_is_optional::<ComponentT>().into(), - }]); - } } impl<Kind, ComponentT> SystemInput for Relationship<Kind, ComponentT> |