From edba6e50d9c9c0a7120c251bed36a87b51f4c826 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sat, 8 Oct 2016 16:42:09 +0200 Subject: Optimize ClientIface::getPlayerNames(): return const ref instead a copy of all names --- src/clientiface.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/clientiface.cpp') 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 ClientInterface::getClientIDs(ClientState min_state) return reply; } -std::vector ClientInterface::getPlayerNames() -{ - return m_clients_names; -} - - void ClientInterface::step(float dtime) { m_print_info_timer += dtime; -- cgit v1.2.3