diff options
author | Oz Linden <oz@lindenlab.com> | 2011-03-10 19:14:42 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-03-10 19:14:42 -0500 |
commit | ca55bce3ab277b08a595ade7e1ba0c343f2df205 (patch) | |
tree | 6181aaef16736e05044cc0114be5f7ef36c12ce9 | |
parent | df633558e4b0446e71e0cf6668a229959754e9ba (diff) |
correct merge error in llviewerobjectlist.cpp
-rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 7bd8875989..979d91cfcb 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -1180,44 +1180,6 @@ void LLViewerObjectList::clearAllMapObjectsInRegion(LLViewerRegion* regionp) } } -//make sure the region is cleaned up. -void LLViewerObjectList::clearAllMapObjectsInRegion(LLViewerRegion* regionp) -{ - std::set<LLViewerObject*> dead_object_list ; - std::set<LLViewerObject*> region_object_list ; - for (vobj_list_t::iterator iter = mMapObjects.begin(); iter != mMapObjects.end(); ++iter) - { - LLViewerObject* objectp = *iter; - - if(objectp->isDead()) - { - dead_object_list.insert(objectp) ; - } - else if(objectp->getRegion() == regionp) - { - region_object_list.insert(objectp) ; - } - } - - if(dead_object_list.size() > 0) - { - llwarns << "There are " << dead_object_list.size() << " dead objects on the map!" << llendl ; - - for(std::set<LLViewerObject*>::iterator iter = dead_object_list.begin(); iter != dead_object_list.end(); ++iter) - { - cleanupReferences(*iter) ; - } - } - if(region_object_list.size() > 0) - { - llwarns << "There are " << region_object_list.size() << " objects not removed from the deleted region!" << llendl ; - - for(std::set<LLViewerObject*>::iterator iter = region_object_list.begin(); iter != region_object_list.end(); ++iter) - { - (*iter)->markDead() ; - } - } -} void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap) { |