From 2bff1f6cdfee8bcff9403115d5c1b42199d4277c Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Sun, 16 Feb 2020 00:13:28 -0500 Subject: [PATCH] nix dead code --- src/Ecs/Lockstep.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Ecs/Lockstep.ts b/src/Ecs/Lockstep.ts index f19d34a..cb959d6 100644 --- a/src/Ecs/Lockstep.ts +++ b/src/Ecs/Lockstep.ts @@ -1,24 +1,6 @@ export const INPUT_FREQUENCY = 33; // roughly 30fps -export interface DeepCopy { - deepCopy(patch: Partial): T; -} - -export interface Equals { - equals(other: this): boolean; -} - -function equals(a: T, b: T): boolean { - if(typeof a === "string"){ - return a == b; - } - if(typeof a === "number"){ - return a == b; - } - return (a as Equals).equals(b as Equals); -} - export interface LockstepProcessor { compareInput(a: Input, b: Input): boolean; cloneState(source: State): State;