diff options
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r-- | ecs/src/component.rs | 9 |
1 files changed, 0 insertions, 9 deletions
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<ComponentRefMut<'component, ComponentT>>; - 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 |