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/system | |
parent | 136d0511972fd31a82331cf769f8d309cd3438f8 (diff) |
refactor(ecs): remove system param compatability checking
Diffstat (limited to 'ecs/src/system')
-rw-r--r-- | ecs/src/system/stateful.rs | 5 | ||||
-rw-r--r-- | ecs/src/system/util.rs | 16 |
2 files changed, 0 insertions, 21 deletions
diff --git a/ecs/src/system/stateful.rs b/ecs/src/system/stateful.rs index 810a071..536e6ed 100644 --- a/ecs/src/system/stateful.rs +++ b/ecs/src/system/stateful.rs @@ -6,7 +6,6 @@ use seq_macro::seq; use crate::component::Component; use crate::lock::Lock; -use crate::system::util::check_params_are_compatible; use crate::system::{ ComponentRefMut, Into as IntoSystem, @@ -90,10 +89,6 @@ macro_rules! impl_system { where 'this: 'world { - #( - check_params_are_compatible!(I, TParam~I, $c); - )* - let func = self.func; func(#({ diff --git a/ecs/src/system/util.rs b/ecs/src/system/util.rs deleted file mode 100644 index 54fff0e..0000000 --- a/ecs/src/system/util.rs +++ /dev/null @@ -1,16 +0,0 @@ -macro_rules! check_params_are_compatible { - ($excluded_index: tt, $param: ident, $cnt: tt) => { - #[cfg(feature = "system-param-compat-checks")] - { - seq!(N in 0..$cnt { - if N != $excluded_index { - if !$param::is_compatible::<TParam~N>() { - panic!("Atleast two parameters are incompatible"); - } - } - }); - } - }; -} - -pub(crate) use check_params_are_compatible; |