summaryrefslogtreecommitdiff
path: root/network_gamelist.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-23 20:06:38 +0000
committertron <tron@openttd.org>2005-01-23 20:06:38 +0000
commita2619da37e81d568794da8f7d34f3014f196141a (patch)
tree5551322b1f7d77ceb6a000e294aa9684fc17bba0 /network_gamelist.c
parent24a34936dbb62200b2aad5be8306514e0e7512c5 (diff)
downloadopenttd-a2619da37e81d568794da8f7d34f3014f196141a.tar.xz
(svn r1623) Remove dead code
Diffstat (limited to 'network_gamelist.c')
-rw-r--r--network_gamelist.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/network_gamelist.c b/network_gamelist.c
index 484d39453..b10b0cb64 100644
--- a/network_gamelist.c
+++ b/network_gamelist.c
@@ -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 @@ void NetworkGameListRemoveItem(NetworkGameList *remove)
}
}
-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 */
-
-