From 995d72f26218f7b933be131218752ea3a192057d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 3 Jun 2018 19:33:53 +0200 Subject: [PATCH] Remove function unused with HTTP disabled --- src/openrct2-ui/windows/ServerList.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/openrct2-ui/windows/ServerList.cpp b/src/openrct2-ui/windows/ServerList.cpp index 9ad41b4317..5de608377b 100644 --- a/src/openrct2-ui/windows/ServerList.cpp +++ b/src/openrct2-ui/windows/ServerList.cpp @@ -611,18 +611,6 @@ static void join_server(std::string address) } } -static uint32 get_total_player_count() -{ - return std::accumulate( - _serverEntries.begin(), - _serverEntries.end(), - 0, - [](uint32 acc, const server_entry &entry) - { - return acc + entry.players; - }); -} - static void fetch_servers() { #ifndef DISABLE_HTTP @@ -656,6 +644,18 @@ static void fetch_servers() } #ifndef DISABLE_HTTP +static uint32 get_total_player_count() +{ + return std::accumulate( + _serverEntries.begin(), + _serverEntries.end(), + 0, + [](uint32 acc, const server_entry &entry) + { + return acc + entry.players; + }); +} + static void fetch_servers_callback(http_response_t* response) { if (response == nullptr) {