From c9a07ff61b607478e264fc0581076643c750fe98 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 16 Nov 2024 17:14:20 +0100 Subject: refactor(ecs): remove system param compatability checking --- ecs/src/component/local.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'ecs/src/component/local.rs') 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>() -> bool - { - let other_comparable = Other::get_comparable(); - - let Some(other_id) = other_comparable.downcast_ref::() else { - return true; - }; - - LocalComponent::id() != *other_id - } - - fn get_comparable() -> Box - { - Box::new(LocalComponent::id()) - } } impl<'world, LocalComponent> Deref for Local<'world, LocalComponent> -- cgit v1.2.3-18-g5258