[7123] Cleanup in using STD's containers erase method.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
Balrok 2009-01-20 20:04:12 +01:00 committed by ApoC
parent 8171c9c61a
commit ce384c5278
9 changed files with 23 additions and 69 deletions

View file

@ -274,22 +274,6 @@ ObjectAccessor::UpdateObject(Object* obj, Player* exceptPlayer)
}
}
void
ObjectAccessor::AddUpdateObject(Object *obj)
{
Guard guard(i_updateGuard);
i_objects.insert(obj);
}
void
ObjectAccessor::RemoveUpdateObject(Object *obj)
{
Guard guard(i_updateGuard);
std::set<Object *>::iterator iter = i_objects.find(obj);
if( iter != i_objects.end() )
i_objects.erase( iter );
}
void
ObjectAccessor::_buildUpdateObject(Object *obj, UpdateDataMapType &update_players)
{