diff options
author | Merov Linden <merov@lindenlab.com> | 2013-04-19 19:02:21 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-04-19 19:02:21 -0700 |
commit | f59af8d27c419d97596fff65fb9aa412499c52be (patch) | |
tree | 8f38e88b837d450b4e206384f0ebe5d28485f33f | |
parent | 2cc1fb250f78df3a4b8f33b13b30defef7efb78a (diff) |
CHUI-912 : Some clean up of vestigial debug code
-rw-r--r-- | indra/newview/llfolderviewmodelinventory.cpp | 9 | ||||
-rw-r--r-- | indra/newview/llfolderviewmodelinventory.h | 3 |
2 files changed, 2 insertions, 10 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.cpp b/indra/newview/llfolderviewmodelinventory.cpp index 4a51d26693..e2a6eb78c6 100644 --- a/indra/newview/llfolderviewmodelinventory.cpp +++ b/indra/newview/llfolderviewmodelinventory.cpp @@ -35,12 +35,6 @@ // class LLFolderViewModelInventory // static LLFastTimer::DeclareTimer FTM_INVENTORY_SORT("Sort"); -static S32 sModelInstance = 0; - -LLFolderViewModelInventory::LLFolderViewModelInventory() -{ - mModelInstance = sModelInstance++; -} bool LLFolderViewModelInventory::startDrag(std::vector<LLFolderViewModelItem*>& items) { @@ -137,8 +131,9 @@ void LLFolderViewModelItemInventory::setPassedFilter(bool passed, S32 filter_gen { bool before = passedFilter(); LLFolderViewModelItemCommon::setPassedFilter(passed, filter_generation, string_offset, string_size); + bool after = passedFilter(); - if (before != passed) + if (before != after) { // Need to rearrange the folder if the filtered state of the item changed LLFolderViewFolder* parent_folder = mFolderViewItem->getParentFolder(); diff --git a/indra/newview/llfolderviewmodelinventory.h b/indra/newview/llfolderviewmodelinventory.h index 540a87354d..10a958a142 100644 --- a/indra/newview/llfolderviewmodelinventory.h +++ b/indra/newview/llfolderviewmodelinventory.h @@ -103,8 +103,6 @@ class LLFolderViewModelInventory public: typedef LLFolderViewModel<LLInventorySort, LLFolderViewModelItemInventory, LLFolderViewModelItemInventory, LLInventoryFilter> base_t; - LLFolderViewModelInventory(); - void setTaskID(const LLUUID& id) {mTaskID = id;} void sort(LLFolderViewFolder* folder); @@ -113,6 +111,5 @@ public: private: LLUUID mTaskID; - S32 mModelInstance; }; #endif // LL_LLFOLDERVIEWMODELINVENTORY_H |