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/actions.rs | |
parent | 136d0511972fd31a82331cf769f8d309cd3438f8 (diff) |
refactor(ecs): remove system param compatability checking
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r-- | ecs/src/actions.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index 72cc95d..f7b00d3 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -1,4 +1,3 @@ -use std::any::Any; use std::marker::PhantomData; use std::sync::{Arc, Weak}; @@ -95,18 +94,6 @@ unsafe impl<'world> SystemParam<'world> for Actions<'world> { Self::new(&world.data.action_queue) } - - fn is_compatible<Other: SystemParam<'world>>() -> bool - { - let other_comparable = Other::get_comparable(); - - other_comparable.downcast_ref::<Comparable>().is_none() - } - - fn get_comparable() -> Box<dyn Any> - { - Box::new(()) - } } #[derive(Debug, Clone)] @@ -157,5 +144,3 @@ pub(crate) enum Action RemoveComponents(Uid, Vec<ComponentMetadata>), Stop, } - -struct Comparable; |