From 6127d0f25a8db8702f509c8a812dd910c06e8ad3 Mon Sep 17 00:00:00 2001 From: Tissevert Date: Tue, 14 Jan 2020 11:15:16 +0100 Subject: [PATCH] Remove commented-out dead code --- js/GUI/Screen/Hall/Games.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/js/GUI/Screen/Hall/Games.js b/js/GUI/Screen/Hall/Games.js index 358d5da..e9def1b 100644 --- a/js/GUI/Screen/Hall/Games.js +++ b/js/GUI/Screen/Hall/Games.js @@ -7,30 +7,11 @@ import dialog from GUI.Screen; import * as Dom from UnitJS.Dom; var list = ListSelector.make('games', showGame); -//initMessageHandlers(); return { refresh: refresh }; -/* -function entry(key, config) { - return { - key: key, - vs: config.vs, - yourTurn: config.yourTurn, - date: config.date - }; -} - -function initMessageHandlers() { - Messaging.addEventListener(["Game"], function(o) { - var sessionKey = Session.getKey(); - Games.entries.insert(o.state.gameID, Games.entry(o.state)); - }); -} -*/ - function showGame(game) { var liContent; if(game.key.match(/^Player#/)) { // Game proposals use the ID of the opponent as ID