summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-04-27 20:18:44 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-04-28 18:13:14 +0300
commit1062164cfecf7637e48c6f4fb51fe12681470523 (patch)
treeac63f3ecf28343742657e75aaf2757202f42cdc3 /indra/llui
parent694c6e1d84d20413f97dabf7bbca6a3d6b5c59f9 (diff)
SL-13119 Duplicate check was causing slowdowns
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfolderviewmodel.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/indra/llui/llfolderviewmodel.h b/indra/llui/llfolderviewmodel.h
index f71a88c56e..84a1539094 100644
--- a/indra/llui/llfolderviewmodel.h
+++ b/indra/llui/llfolderviewmodel.h
@@ -285,17 +285,7 @@ public:
typedef std::list<LLFolderViewModelItem*> child_list_t;
virtual void addChild(LLFolderViewModelItem* child)
- {
- // Avoid duplicates: bail out if that child is already present in the list
- // Note: this happens when models are created before views
- child_list_t::const_iterator iter;
- for (iter = mChildren.begin(); iter != mChildren.end(); iter++)
- {
- if (child == *iter)
- {
- return;
- }
- }
+ {
mChildren.push_back(child);
child->setParent(this);
dirtyFilter();