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