mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Various code cleanup & little performance improvement on HTTP download (#5772)
* Disable or remove unused enum members/functions * Tiny code style fixes * Make some functions const * Replace ClientMediaDownloader std::unordered_map with std::map
This commit is contained in:
@@ -590,7 +590,7 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
|
||||
}
|
||||
}
|
||||
|
||||
u32 RemoteClient::uptime()
|
||||
u32 RemoteClient::uptime() const
|
||||
{
|
||||
return porting::getTime(PRECISION_SECONDS) - m_connection_time;
|
||||
}
|
||||
|
Reference in New Issue
Block a user