summaryrefslogtreecommitdiff
path: root/ecs/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-09-05 14:28:54 +0200
committerHampusM <hampus@hampusmat.com>2025-09-05 14:28:54 +0200
commitf5ee3b13a45b58b482a48c97ea6e67b587f1cc52 (patch)
tree12c5b85f563162e544d449de73e27a133e9f96f0 /ecs/src
parentbaccdc99ec470e719bfa836f8e418d106717e868 (diff)
refactor(ecs): remove unused run fn from system trait
Diffstat (limited to 'ecs/src')
-rw-r--r--ecs/src/system.rs15
-rw-r--r--ecs/src/system/stateful.rs11
2 files changed, 0 insertions, 26 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 {
diff --git a/ecs/src/system/stateful.rs b/ecs/src/system/stateful.rs
index 93bfd5e..7b2b608 100644
--- a/ecs/src/system/stateful.rs
+++ b/ecs/src/system/stateful.rs
@@ -26,17 +26,6 @@ macro_rules! impl_system {
{
type Callbacks = Callbacks;
- fn run<'this>(&'this self, world: &'world World, metadata: Metadata)
- where
- 'this: 'world
- {
- let func = self.func;
-
- func(#({
- TParam~I::new(&world, &metadata)
- },)*);
- }
-
fn finish(self) -> (TypeErased, Self::Callbacks)
{
let Self { func, local_components } = self;