# HG changeset patch # User tron # Date 1106510798 0 # Node ID 17db3184056d6a2e3f2cfde1340610431a4089be # Parent 8a7e7ace154f21841cbb6a33f0c4dfe635fa1624 (svn r1623) Remove dead code diff -r 8a7e7ace154f -r 17db3184056d network_gamelist.c --- a/network_gamelist.c Sun Jan 23 19:33:42 2005 +0000 +++ b/network_gamelist.c Sun Jan 23 20:06:38 2005 +0000 @@ -9,25 +9,6 @@ extern void UpdateNetworkGameWindow(bool unselect); -static void NetworkGameListClear(void) -{ - NetworkGameList *item; - NetworkGameList *next; - - item = _network_game_list; - - while (item != NULL) { - next = item->next; - free(item); - item = next; - } - _network_game_list = NULL; - _network_game_count = 0; - - UpdateNetworkGameWindow(true); - - DEBUG(net, 4)("[NET][GameList] Cleared list"); -} NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port) { @@ -92,19 +73,4 @@ } } -static void NetworkGameListAddQueriedItem(const NetworkGameInfo *info, bool server_online) -{ - // We queried a server and now we are going to add it to the list - NetworkGameList *item; - - item = NetworkGameListAddItem(_network_last_host_ip, _network_last_port); - item->online = server_online; - memcpy(&item->info, info, sizeof(NetworkGameInfo)); - ttd_strlcpy(item->info.hostname, _network_last_host, sizeof(item->info.hostname)); - - UpdateNetworkGameWindow(false); -} - #endif /* ENABLE_NETWORK */ - -