1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-03 09:17:47 +00:00

CF: Remove unnecessary method

This commit is contained in:
Rushi 2022-02-18 19:48:39 +01:00
parent 3c15b8566a
commit 6e6dc43018
2 changed files with 0 additions and 15 deletions

View file

@ -466,19 +466,6 @@ std::shared_ptr< Sapphire::World::QueuedContent > Sapphire::World::ContentFinder
return nullptr;
}
std::shared_ptr< Sapphire::World::QueuedContent > Sapphire::World::ContentFinder::findContentByPlayerId( uint32_t playerId )
{
auto queuedPlayer = m_queuedPlayer.find( playerId );
if( queuedPlayer != m_queuedPlayer.end() )
{
auto queuedContent = m_queuedContent.find( queuedPlayer->second->getActiveRegisterId() );
if( queuedContent != m_queuedContent.end() )
return queuedContent->second;
}
return nullptr;
}
bool Sapphire::World::ContentFinder::removeContentByRegisterId( uint32_t registerId )
{
auto it = m_queuedContent.find( registerId );

View file

@ -129,8 +129,6 @@ namespace Sapphire::World
std::shared_ptr< QueuedContent > findContentByRegisterId( uint32_t registerId );
bool removeContentByRegisterId( uint32_t registerId );
std::shared_ptr< QueuedContent > findContentByPlayerId( uint32_t playerId );
private:
uint32_t m_nextRegisterId{ 0 };
std::unordered_map< uint32_t, std::shared_ptr< QueuedContent > > m_queuedContent;