summaryrefslogtreecommitdiff
path: root/ecs/src/component.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r--ecs/src/component.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/ecs/src/component.rs b/ecs/src/component.rs
index cc4b460..de4384b 100644
--- a/ecs/src/component.rs
+++ b/ecs/src/component.rs
@@ -77,29 +77,6 @@ pub trait Sequence
fn into_parts_array(self) -> Self::PartsArray;
}
-/// A mutable or immutable reference to a component.
-pub trait Ref
-{
- type Component: Component;
- type Handle<'component>: HandleFromEntityComponentRef<'component>;
-}
-
-impl<ComponentT> Ref for &ComponentT
-where
- ComponentT: Component,
-{
- type Component = ComponentT;
- type Handle<'component> = ComponentT::Handle<'component>;
-}
-
-impl<ComponentT> Ref for &mut ComponentT
-where
- ComponentT: Component,
-{
- type Component = ComponentT;
- type Handle<'component> = ComponentT::HandleMut<'component>;
-}
-
/// [`Component`] metadata.
#[derive(Debug, Clone)]
#[non_exhaustive]