From 91dfc14badd629d5a537ea01dbcda44da7b2a5da Mon Sep 17 00:00:00 2001 From: Inga Date: Sat, 7 Dec 2024 01:31:54 +0000 Subject: [PATCH] removed unused code --- src/frontend/components/board-game.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/frontend/components/board-game.ts b/src/frontend/components/board-game.ts index 6ae44b3..55a395d 100644 --- a/src/frontend/components/board-game.ts +++ b/src/frontend/components/board-game.ts @@ -43,12 +43,6 @@ class BoardGameComponent extends HTMLElement { }); } - this.querySelectorAll(".current-player-name").forEach((playerNameElement) => { - if ((playerNameElement as HTMLElement).innerText !== gameState.currentPlayerName) { - (playerNameElement as HTMLElement).innerText = gameState.currentPlayerName; - } - }); - const buttonValues = getButtonValues(gameState); this.querySelectorAll("button").forEach((button) => { button.classList.forEach((className) => {