From 94d3d282398d3542d79be775abd770c6a1dac3a5 Mon Sep 17 00:00:00 2001 From: Andrey Ozornin Date: Tue, 27 Aug 2024 23:41:28 +0200 Subject: [PATCH] remove unused property --- src/game.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/game.ts b/src/game.ts index 1d0d391..a95554e 100644 --- a/src/game.ts +++ b/src/game.ts @@ -4,12 +4,9 @@ import { StartMenu } from "./screens/start-menu"; type GameState = 'not_started' | 'playing' export class Game { - private state: GameState = 'not_started' constructor(private startMenu: StartMenu, private match: Match) {} private setState(state: GameState) { - this.state = state - if (state === 'not_started') { this.startMenu.show() this.match.hide()