diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-16 17:14:20 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-16 17:14:20 +0100 |
commit | c9a07ff61b607478e264fc0581076643c750fe98 (patch) | |
tree | 640e6c6309af6f86df49c492057d281f5f7ea420 /ecs/src/component | |
parent | 136d0511972fd31a82331cf769f8d309cd3438f8 (diff) |
refactor(ecs): remove system param compatability checking
Diffstat (limited to 'ecs/src/component')
-rw-r--r-- | ecs/src/component/local.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ecs/src/component/local.rs b/ecs/src/component/local.rs index 9d32d47..20627bf 100644 --- a/ecs/src/component/local.rs +++ b/ecs/src/component/local.rs @@ -1,8 +1,6 @@ -use std::any::Any; use std::ops::{Deref, DerefMut}; use crate::component::Component; -use crate::uid::Uid; use crate::system::{ComponentRefMut, Param as SystemParam, System}; use crate::World; @@ -39,22 +37,6 @@ where Self { local_component } } - - fn is_compatible<Other: SystemParam<'world>>() -> bool - { - let other_comparable = Other::get_comparable(); - - let Some(other_id) = other_comparable.downcast_ref::<Uid>() else { - return true; - }; - - LocalComponent::id() != *other_id - } - - fn get_comparable() -> Box<dyn Any> - { - Box::new(LocalComponent::id()) - } } impl<'world, LocalComponent> Deref for Local<'world, LocalComponent> |