From 6ab9da4978fe5b1348cf0acc4816829d872b00cd Mon Sep 17 00:00:00 2001 From: Jan W Date: Sat, 12 Aug 2023 15:33:46 +0200 Subject: [PATCH] fix: don't warn on missing entity (#20) --- src/plugin.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/plugin.rs b/src/plugin.rs index 68ae9e3..41b54c4 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -1,7 +1,6 @@ -use bevy::asset::load_internal_asset; use std::marker::PhantomData; -use bevy::log::warn; +use bevy::asset::load_internal_asset; use bevy::pbr::{NotShadowCaster, NotShadowReceiver}; use bevy::prelude::*; @@ -169,10 +168,6 @@ fn remove( ) { removals.iter().for_each(|entity| { let Ok(&WithBar(bar_entity, _)) = parent_query.get(entity) else { - warn!( - "Tracked component {:?} was removed, but couldn't find bar to despawn.", - entity - ); return; };