From 989bffa8ec39bf7421801129fb5b116c47ce8a35 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 6 Jun 2024 12:21:34 +0200 Subject: chore(ecs): remove support for specifying component to be dropped last --- ecs/src/component.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ecs/src/component.rs') diff --git a/ecs/src/component.rs b/ecs/src/component.rs index 3399183..63ef7c4 100644 --- a/ecs/src/component.rs +++ b/ecs/src/component.rs @@ -21,8 +21,6 @@ pub trait Component: SystemInput + Any + TypeName where Self: Sized; - fn drop_last(&self) -> bool; - #[doc(hidden)] fn as_any_mut(&mut self) -> &mut dyn Any; @@ -71,13 +69,6 @@ where type Component = ComponentT; type RefMut<'component> = Option>; - fn drop_last(&self) -> bool - { - self.as_ref() - .map(|component| component.drop_last()) - .unwrap_or_default() - } - fn as_any_mut(&mut self) -> &mut dyn Any { self -- cgit v1.2.3-18-g5258