From 402b66282bd1062a36bd7fed793b6014bdb286b2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 8 Apr 2025 18:56:24 +0200 Subject: refactor(ecs): remove Component associated type from Component --- ecs-macros/src/lib.rs | 2 -- ecs/src/component.rs | 5 ----- 2 files changed, 7 deletions(-) diff --git a/ecs-macros/src/lib.rs b/ecs-macros/src/lib.rs index a5acc2b..5aa4405 100644 --- a/ecs-macros/src/lib.rs +++ b/ecs-macros/src/lib.rs @@ -128,8 +128,6 @@ pub fn component_derive(input: TokenStream) -> TokenStream impl #impl_generics Component for #item_ident #type_generics #where_clause { - type Component = Self; - type HandleMut<'component> = #handle_mut_type; type Handle<'component> = #handle_type; diff --git a/ecs/src/component.rs b/ecs/src/component.rs index 49265b3..4516b93 100644 --- a/ecs/src/component.rs +++ b/ecs/src/component.rs @@ -28,11 +28,6 @@ pub(crate) mod storage; pub trait Component: SystemInput + Any { - /// The component type in question. Will usually be `Self` - type Component: Component - where - Self: Sized; - type HandleMut<'component>: HandleFromEntityComponentRef<'component> where Self: Sized; -- cgit v1.2.3-18-g5258