diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-03-19 16:44:50 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-03-19 16:44:50 -0400 |
commit | 7792a53b2827b761a83b8243e2838ad0084633d6 (patch) | |
tree | 6d1730eebc1de6e70b5f1a0534c9e7f0b1c771f8 | |
parent | 3979bf6caea3b2f4828f4d76514399f5b63ee39c (diff) |
cleanup - replaced larger chunk of code with removeCOFItemLinks
-rw-r--r-- | indra/newview/llinventorybridge.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 4330dfba9d..966ea1dcef 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -4992,20 +4992,7 @@ void LLWearableBridge::removeAllClothesFromAvatar() continue; // Find and remove this item from the COF. - LLInventoryModel::item_array_t items = gInventory.collectLinkedItems( - item_id, LLAppearanceManager::instance().getCOF()); - if (items.size() != 1) - { - llwarns << "Found " << items.size() << " COF links to " << item_id.asString() << ", expected 1" << llendl; - } - for (LLInventoryModel::item_array_t::const_iterator iter = items.begin(); - iter != items.end(); - ++iter) - { - const LLViewerInventoryItem *linked_item = (*iter); - const LLUUID &item_id = linked_item->getUUID(); - gInventory.purgeObject(item_id); - } + LLAppearanceManager::instance().removeCOFItemLinks(item_id,false); } gInventory.notifyObservers(); |