Remove commented-out dead code

This commit is contained in:
Tissevert 2020-01-14 11:15:16 +01:00
parent b8c95646dc
commit 6127d0f25a

View file

@ -7,30 +7,11 @@ import dialog from GUI.Screen;
import * as Dom from UnitJS.Dom; import * as Dom from UnitJS.Dom;
var list = ListSelector.make('games', showGame); var list = ListSelector.make('games', showGame);
//initMessageHandlers();
return { return {
refresh: refresh 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) { function showGame(game) {
var liContent; var liContent;
if(game.key.match(/^Player#/)) { // Game proposals use the ID of the opponent as ID if(game.key.match(/^Player#/)) { // Game proposals use the ID of the opponent as ID