From 40e0f989545ff759b8fd55a06ec4fdd5ba287088 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 20 Mar 2021 16:40:08 -0600 Subject: [PATCH] Remove helper function that was causing problems --- server/src/objects/Team.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/server/src/objects/Team.ts b/server/src/objects/Team.ts index 30882a8..ea526bd 100644 --- a/server/src/objects/Team.ts +++ b/server/src/objects/Team.ts @@ -37,27 +37,6 @@ export class Team { }; - /** - * Removes all players from the team. - */ - public removePlayers() { - - // Reset the writer - if (this.writer) { - this.writer.team = null; - this.writer.role = null; - this.writer = null; - }; - - // Reset all the guessers - for (var player of this.guessers) { - player.team = null; - player.role = null; - } - this.guessers = []; - }; - - /** * Resets all the per-game data related to this team */