summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallerymenu.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-03-30 21:39:43 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-03-30 21:40:19 +0300
commitae3e3662159ca26db5b2efe36d91a9ccdfcec256 (patch)
treeb6b1198f8da894a5795b640854ce587648d6a4ef /indra/newview/llinventorygallerymenu.cpp
parentc15ee792a7248cf141abb3ae6a26b33a5aca1ed7 (diff)
SL-19379 WIP update gear menu with Gallery items
Diffstat (limited to 'indra/newview/llinventorygallerymenu.cpp')
-rw-r--r--indra/newview/llinventorygallerymenu.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/indra/newview/llinventorygallerymenu.cpp b/indra/newview/llinventorygallerymenu.cpp
index a501f02e00..21f7b06534 100644
--- a/indra/newview/llinventorygallerymenu.cpp
+++ b/indra/newview/llinventorygallerymenu.cpp
@@ -33,7 +33,6 @@
#include "llavataractions.h"
#include "llclipboard.h"
#include "llfloaterreg.h"
-#include "llgiveinventory.h"
#include "llinventorybridge.h"
#include "llinventoryfunctions.h"
#include "llinventorymodel.h"
@@ -342,35 +341,6 @@ void LLInventoryGalleryContextMenu::fileUploadLocation(const LLSD& userdata, con
}
}
-bool can_share_item(LLUUID item_id)
-{
- bool can_share = false;
-
- if (gInventory.isObjectDescendentOf(item_id, gInventory.getRootFolderID()))
- {
- const LLViewerInventoryItem *item = gInventory.getItem(item_id);
- if (item)
- {
- if (LLInventoryCollectFunctor::itemTransferCommonlyAllowed(item))
- {
- can_share = LLGiveInventory::isInventoryGiveAcceptable(item);
- }
- }
- else
- {
- can_share = (gInventory.getCategory(item_id) != NULL);
- }
-
- const LLUUID trash_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH);
- if ((item_id == trash_id) || gInventory.isObjectDescendentOf(item_id, trash_id))
- {
- can_share = false;
- }
- }
-
- return can_share;
-}
-
bool is_inbox_folder(LLUUID item_id)
{
const LLUUID inbox_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_INBOX);