Remove function unused with HTTP disabled

This commit is contained in:
Michał Janiszewski 2018-06-03 19:33:53 +02:00
parent 6e72ac350f
commit 995d72f262
1 changed files with 12 additions and 12 deletions

View File

@ -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) {