summaryrefslogtreecommitdiff
path: root/ecs/src/component.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-06 12:21:34 +0200
committerHampusM <hampus@hampusmat.com>2024-06-06 12:21:34 +0200
commit989bffa8ec39bf7421801129fb5b116c47ce8a35 (patch)
treef0f244049230e5be449a9e2a857fa3b72dddc190 /ecs/src/component.rs
parentc962b8721aaaaf001e9599fac17596bef71e433d (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.rs9
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