diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2011-07-08 15:37:34 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2011-07-08 15:37:34 -0700 |
commit | 5edd6b606b9bc011c64c890200a9fb54072e9fde (patch) | |
tree | 2d509a24b0e042c78df4fa0e3313a249ca9995fc /indra | |
parent | 2eb37ef38fb774dbdaf8826c203581cd99580111 (diff) |
removing LLInboxFolderViewFolder getCreationDate
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelmarketplaceinboxinventory.cpp | 42 | ||||
-rw-r--r-- | indra/newview/llpanelmarketplaceinboxinventory.h | 4 |
2 files changed, 1 insertions, 45 deletions
diff --git a/indra/newview/llpanelmarketplaceinboxinventory.cpp b/indra/newview/llpanelmarketplaceinboxinventory.cpp index cc6bf509d3..5dff73ee6a 100644 --- a/indra/newview/llpanelmarketplaceinboxinventory.cpp +++ b/indra/newview/llpanelmarketplaceinboxinventory.cpp @@ -191,46 +191,4 @@ void LLInboxFolderViewFolder::setCreationDate(time_t creation_date_utc) const } -time_t LLInboxFolderViewFolder::getCreationDate() const -{ - // folders have no creation date try to create one from an item somewhere in our folder hierarchy - if (!mCreationDate) - { - for (items_t::const_iterator iit = mItems.begin(); - iit != mItems.end(); ++iit) - { - LLFolderViewItem* itemp = (*iit); - - const time_t item_creation_date = itemp->getCreationDate(); - - if (item_creation_date) - { - mCreationDate = item_creation_date; - updateFlag(); - break; - } - } - - if (!mCreationDate) - { - for (folders_t::const_iterator fit = mFolders.begin(); - fit != mFolders.end(); ++fit) - { - LLFolderViewFolder* folderp = (*fit); - - const time_t folder_creation_date = folderp->getCreationDate(); - - if (folder_creation_date) - { - mCreationDate = folder_creation_date; - updateFlag(); - break; - } - } - } - } - - return llmax<time_t>(mCreationDate, mSubtreeCreationDate); -} - // eof diff --git a/indra/newview/llpanelmarketplaceinboxinventory.h b/indra/newview/llpanelmarketplaceinboxinventory.h index 1ac680e5de..7b124fdccc 100644 --- a/indra/newview/llpanelmarketplaceinboxinventory.h +++ b/indra/newview/llpanelmarketplaceinboxinventory.h @@ -68,9 +68,7 @@ public: ~LLInboxFolderViewFolder(); void draw(); - - time_t getCreationDate() const; - + void updateFlag() const; void selectItem(); void toggleOpen(); |