From 414f8b9098b2d7b8eb905ec41546337df4463a08 Mon Sep 17 00:00:00 2001 From: Marco Alka Date: Wed, 22 May 2024 15:33:46 +0200 Subject: [PATCH] chore(system): clean up system class code --- src/system/system-builder.ts | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/system/system-builder.ts b/src/system/system-builder.ts index 94a0522..0d646ca 100644 --- a/src/system/system-builder.ts +++ b/src/system/system-builder.ts @@ -50,18 +50,6 @@ export class SystemBuilder implements IS return new System(); } - name(name: string): SystemBuilder> { - return this.withName(name); - } - - run(fn: TSystemFunction>): SystemBuilder> { - return this.withRunFunction(fn); - } - - setup(fn: TSystemFunction>): SystemBuilder> { - return this.withSetupFunction(fn); - } - withName(name: string): SystemBuilder> { this.systemName = name; return this; @@ -76,10 +64,8 @@ export class SystemBuilder implements IS this.setupFunction = fn; return this; } -} -// Change alias refs for better performance - -SystemBuilder.prototype.name = SystemBuilder.prototype.withName; -SystemBuilder.prototype.run = SystemBuilder.prototype.withRunFunction; -SystemBuilder.prototype.setup = SystemBuilder.prototype.withSetupFunction; + name = this.withName; + run = this.withRunFunction; + setup = this.withSetupFunction; +}