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:
parent
3c15b8566a
commit
6e6dc43018
2 changed files with 0 additions and 15 deletions
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue