diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2016-10-08 16:42:09 +0200 |
---|---|---|
committer | Ner'zhul <nerzhul@users.noreply.github.com> | 2016-10-08 22:27:44 +0200 |
commit | edba6e50d9c9c0a7120c251bed36a87b51f4c826 (patch) | |
tree | 63073d59bccd278f8b3cbbc92b6aadb1ba2e3c14 /src/clientiface.cpp | |
parent | fd5a130b86c08f0b3190c3d81affd4869c139fb7 (diff) | |
download | hax-minetest-server-edba6e50d9c9c0a7120c251bed36a87b51f4c826.tar.gz hax-minetest-server-edba6e50d9c9c0a7120c251bed36a87b51f4c826.zip |
Optimize ClientIface::getPlayerNames(): return const ref instead a copy of all names
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r-- | src/clientiface.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp index e55c07cb6..fbfc16770 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -627,12 +627,6 @@ std::vector<u16> ClientInterface::getClientIDs(ClientState min_state) return reply; } -std::vector<std::string> ClientInterface::getPlayerNames() -{ - return m_clients_names; -} - - void ClientInterface::step(float dtime) { m_print_info_timer += dtime; |