mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7224] Drop unused code.
This commit is contained in:
parent
a4b87550a8
commit
6786ed1610
2 changed files with 1 additions and 33 deletions
|
|
@ -44,38 +44,6 @@
|
||||||
INSTANTIATE_SINGLETON_2(ObjectAccessor, CLASS_LOCK);
|
INSTANTIATE_SINGLETON_2(ObjectAccessor, CLASS_LOCK);
|
||||||
INSTANTIATE_CLASS_MUTEX(ObjectAccessor, ZThread::FastMutex);
|
INSTANTIATE_CLASS_MUTEX(ObjectAccessor, ZThread::FastMutex);
|
||||||
|
|
||||||
namespace MaNGOS
|
|
||||||
{
|
|
||||||
struct MANGOS_DLL_DECL BuildUpdateForPlayer
|
|
||||||
{
|
|
||||||
Player &i_player;
|
|
||||||
UpdateDataMapType &i_updatePlayers;
|
|
||||||
|
|
||||||
BuildUpdateForPlayer(Player &player, UpdateDataMapType &data_map) : i_player(player), i_updatePlayers(data_map) {}
|
|
||||||
|
|
||||||
void Visit(PlayerMapType &m)
|
|
||||||
{
|
|
||||||
for(PlayerMapType::iterator iter=m.begin(); iter != m.end(); ++iter)
|
|
||||||
{
|
|
||||||
if( iter->getSource() == &i_player )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
UpdateDataMapType::iterator iter2 = i_updatePlayers.find(iter->getSource());
|
|
||||||
if( iter2 == i_updatePlayers.end() )
|
|
||||||
{
|
|
||||||
std::pair<UpdateDataMapType::iterator, bool> p = i_updatePlayers.insert( ObjectAccessor::UpdateDataValueType(iter->getSource(), UpdateData()) );
|
|
||||||
assert(p.second);
|
|
||||||
iter2 = p.first;
|
|
||||||
}
|
|
||||||
|
|
||||||
i_player.BuildValuesUpdateBlockForPlayer(&iter2->second, iter2->first);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
template<class SKIP> void Visit(GridRefManager<SKIP> &) {}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
ObjectAccessor::ObjectAccessor() {}
|
ObjectAccessor::ObjectAccessor() {}
|
||||||
ObjectAccessor::~ObjectAccessor() {}
|
ObjectAccessor::~ObjectAccessor() {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7223"
|
#define REVISION_NR "7224"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue