diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-15 22:26:04 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-15 23:08:51 +0300 |
commit | 4de5576fb4bea538f3381f581d3caf54ee03fb05 (patch) | |
tree | 1db9011463c7eb8c1432a9b6f67750367c6bce18 /indra/newview/llinventorygallery.cpp | |
parent | d077558ed7fac01aae8d5a1670f4d0764ec6fbcb (diff) |
SL-19686 Remove gallery 'skipped' items
Probably whole observer is not nessesary, instead we need a general observer to track a variety of changes.
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r-- | indra/newview/llinventorygallery.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index caf93b924c..a7dfbb5938 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -2294,33 +2294,6 @@ void LLInventoryGalleryItem::updateNameText() void LLThumbnailsObserver::changed(U32 mask) { std::vector<LLUUID> deleted_ids; - for (item_map_t::iterator iter = mSkippedItems.begin(); - iter != mSkippedItems.end(); - ++iter) - { - const LLUUID& obj_id = (*iter).first; - LLItemData& data = (*iter).second; - - LLInventoryObject* obj = gInventory.getObject(obj_id); - if (!obj) - { - deleted_ids.push_back(obj_id); - continue; - } - - const LLUUID thumbnail_id = obj->getThumbnailUUID(); - if (data.mThumbnailID != thumbnail_id) - { - data.mThumbnailID = thumbnail_id; - data.mCallback(); - } - } - for (std::vector<LLUUID>::iterator deleted_id = deleted_ids.begin(); deleted_id != deleted_ids.end(); ++deleted_id) - { - removeSkippedItem(*deleted_id); - } - deleted_ids.clear(); - for (item_map_t::iterator iter = mItemMap.begin(); iter != mItemMap.end(); ++iter) @@ -2361,25 +2334,11 @@ bool LLThumbnailsObserver::addItem(const LLUUID& obj_id, callback_t cb) return false; } -void LLThumbnailsObserver::addSkippedItem(const LLUUID& obj_id, callback_t cb) -{ - LLInventoryObject* obj = gInventory.getObject(obj_id); - if (obj) - { - mSkippedItems.insert(item_map_value_t(obj_id, LLItemData(obj_id, obj->getThumbnailUUID(), cb))); - } -} - void LLThumbnailsObserver::removeItem(const LLUUID& obj_id) { mItemMap.erase(obj_id); } -void LLThumbnailsObserver::removeSkippedItem(const LLUUID& obj_id) -{ - mSkippedItems.erase(obj_id); -} - //----------------------------- // Helper drag&drop functions //----------------------------- |