summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallerymenu.cpp
diff options
context:
space:
mode:
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);