summaryrefslogtreecommitdiff
path: root/ecs/src/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r--ecs/src/query.rs23
1 files changed, 1 insertions, 22 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs
index 60d4210..ea61640 100644
--- a/ecs/src/query.rs
+++ b/ecs/src/query.rs
@@ -20,7 +20,7 @@ use crate::system::{
Param as SystemParam,
System,
};
-use crate::{World, WorldData};
+use crate::World;
pub mod options;
@@ -138,27 +138,6 @@ where
{
Box::new(QueryComponentIds { component_ids: Comps::metadata() })
}
-
- #[cfg_attr(feature = "debug", tracing::instrument(skip_all))]
- fn prepare(world_data: &WorldData)
- {
- 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 components: ({})",
- std::any::type_name::<Comps>()
- );
-
- component_storage_lock.add_archetype_lookup_entry(Comps::metadata());
-
- drop(component_storage_lock);
-
- Comps::prepare(world_data);
- }
}
type ComponentIterMapFn = for<'a> fn(&'a Archetype) -> EntityIter<'a>;