diff options
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; |