From 20dcceb7e6a8810525fd873f29e665759bdde087 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sat, 29 Nov 2014 15:46:31 -0800 Subject: removed GetUsernames() from World --- src/World.cpp | 15 --------------- src/World.h | 3 --- 2 files changed, 18 deletions(-) diff --git a/src/World.cpp b/src/World.cpp index e6a2f161a..100df5742 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -3667,18 +3667,3 @@ void cWorld::cChunkGeneratorCallbacks::CallHookChunkGenerated (cChunkDesc & a_Ch -std::list cWorld::GetUsernames() -{ - std::list usernames; - cCSLock Lock(m_CSPlayers); - for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) - { - AString username = (*itr)->GetName(); - usernames.insert(usernames.begin(),username); - } - return usernames; -} - - - - diff --git a/src/World.h b/src/World.h index a3ad4d1da..ee9b93874 100644 --- a/src/World.h +++ b/src/World.h @@ -807,9 +807,6 @@ public: This function allows nesting and task-concurrency (multiple separate tasks can request ticking and as long as at least one requests is active the chunk will be ticked). */ void SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicked = true); // tolua_export - - /** Get the usernames from the World. */ - std::list GetUsernames(void); private: -- cgit v1.2.3