diff options
author | HampusM <hampus@hampusmat.com> | 2025-09-05 14:28:54 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-09-05 14:28:54 +0200 |
commit | f5ee3b13a45b58b482a48c97ea6e67b587f1cc52 (patch) | |
tree | 12c5b85f563162e544d449de73e27a133e9f96f0 /ecs/src/system.rs | |
parent | baccdc99ec470e719bfa836f8e418d106717e868 (diff) |
refactor(ecs): remove unused run fn from system trait
Diffstat (limited to 'ecs/src/system.rs')
-rw-r--r-- | ecs/src/system.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ecs/src/system.rs b/ecs/src/system.rs index a7ca4df..ae6dd2e 100644 --- a/ecs/src/system.rs +++ b/ecs/src/system.rs @@ -21,10 +21,6 @@ pub trait System<'world, Impl>: 'static { type Callbacks: Callbacks; - fn run<'this>(&'this self, world: &'world World, metadata: Metadata) - where - 'this: 'world; - fn finish(self) -> (TypeErased, Self::Callbacks); } @@ -39,17 +35,6 @@ macro_rules! impl_system { { type Callbacks = NoCallbacks; - fn run<'this>(&'this self, world: &'world World, metadata: Metadata) - where - 'this: 'world - { - let func = *self; - - func(#({ - TParam~I::new(world, &metadata) - },)*); - } - fn finish(self) -> (TypeErased, Self::Callbacks) { let type_erased = TypeErased { |