Remove unnecessary code

This commit is contained in:
Manuel Thalmann 2022-12-15 14:33:42 +01:00
parent c091e5c808
commit 21d940d3ea
No known key found for this signature in database
GPG key ID: 5FD9AD3CCDDBD27B

View file

@ -72,7 +72,7 @@ export function App(game)
`Player ${Constants.PLAYER_NAMES[game.winner]} wins!` : `Player ${Constants.PLAYER_NAMES[game.winner]} wins!` :
`It's player "${Constants.PLAYER_NAMES[game.currentPlayer]}"s turn` `It's player "${Constants.PLAYER_NAMES[game.currentPlayer]}"s turn`
], ],
[MenuBar, game] [MenuBar]
]; ];
} }
@ -131,13 +131,10 @@ export function Field(field)
/** /**
* Renders a menu bar. * Renders a menu bar.
* *
* @param {import("./Game.js").Game} game
* The game controlled by the menu bar.
*
* @returns {NodeDescriptor} * @returns {NodeDescriptor}
* The rendered element. * The rendered element.
*/ */
export function MenuBar(game) export function MenuBar()
{ {
return [ return [
"div", "div",