summaryrefslogtreecommitdiff
path: root/src/clientiface.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-08 16:42:09 +0200
committerNer'zhul <nerzhul@users.noreply.github.com>2016-10-08 22:27:44 +0200
commitedba6e50d9c9c0a7120c251bed36a87b51f4c826 (patch)
tree63073d59bccd278f8b3cbbc92b6aadb1ba2e3c14 /src/clientiface.cpp
parentfd5a130b86c08f0b3190c3d81affd4869c139fb7 (diff)
downloadminetest-edba6e50d9c9c0a7120c251bed36a87b51f4c826.tar.gz
minetest-edba6e50d9c9c0a7120c251bed36a87b51f4c826.tar.bz2
minetest-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.cpp6
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;