summaryrefslogtreecommitdiff
path: root/ecs/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-02-02 21:35:18 +0100
committerHampusM <hampus@hampusmat.com>2025-02-02 21:35:18 +0100
commit9b07ebe0efbda2a62ccc25215fe6bf8939bcf272 (patch)
tree199ffa49009b0420b677c00f3f17dc8df98a8571 /ecs/src/lib.rs
parentd313b72970b25878f34d39791f08d5e0d645d9d0 (diff)
chore(ecs): remove 'debug' crate feature
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r--ecs/src/lib.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs
index 1fb755f..efdb6d5 100644
--- a/ecs/src/lib.rs
+++ b/ecs/src/lib.rs
@@ -102,7 +102,7 @@ impl World
entity_uid
}
- #[cfg_attr(feature = "debug", tracing::instrument(skip_all))]
+ #[tracing::instrument(skip_all)]
#[doc(hidden)]
pub fn create_entity_with_uid<Comps>(&self, components: Comps, entity_uid: Uid)
where
@@ -118,7 +118,6 @@ impl World
.expect("Failed to acquire read-write component storage lock")
.push_entity(entity_uid, components.into_vec())
{
- #[cfg(feature = "debug")]
tracing::error!("Failed to create entity: {err}");
return;
@@ -297,7 +296,7 @@ impl World
}
}
- #[cfg_attr(feature = "debug", tracing::instrument(skip_all))]
+ #[tracing::instrument(skip_all)]
fn perform_queued_actions(&self)
{
let mut active_action_queue = match *self.data.action_queue.active_queue.borrow()
@@ -324,7 +323,6 @@ impl World
if let Err(err) = component_storage_lock
.push_entity(Uid::new_unique(UidKind::Entity), components)
{
- #[cfg(feature = "debug")]
tracing::error!("Failed to create entity: {err}");
continue;
@@ -400,7 +398,6 @@ impl World
let Some(archetype) = component_storage_lock.get_entity_archetype(entity_uid)
else {
- #[cfg(feature = "debug")]
tracing::error!("No archetype for entity {entity_uid:?} was found");
return;
@@ -629,7 +626,6 @@ impl Drop for SoleStorage
for sole in self.storage.values_mut() {
if sole.drop_last {
- #[cfg(feature = "debug")]
tracing::debug!(
"Sole {} pushed to dropping last queue",
sole.sole.read_nonblock().unwrap().type_name()
@@ -638,8 +634,6 @@ impl Drop for SoleStorage
soles_to_drop_last.push(sole);
continue;
}
-
- #[cfg(feature = "debug")]
tracing::debug!(
"Dropping sole {}",
sole.sole.read_nonblock().unwrap().type_name()
@@ -651,7 +645,6 @@ impl Drop for SoleStorage
}
for sole in &mut soles_to_drop_last {
- #[cfg(feature = "debug")]
tracing::debug!(
"Dropping sole {} last",
sole.sole.read_nonblock().unwrap().type_name()