diff options
author | HampusM <hampus@hampusmat.com> | 2024-06-06 12:21:34 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-06-06 12:21:34 +0200 |
commit | 989bffa8ec39bf7421801129fb5b116c47ce8a35 (patch) | |
tree | f0f244049230e5be449a9e2a857fa3b72dddc190 /ecs/src/component.rs | |
parent | c962b8721aaaaf001e9599fac17596bef71e433d (diff) |
chore(ecs): remove support for specifying component to be dropped last
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 |