From 05a4bedc305a299efaf89c881b7dafbe25ed23a6 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 6 Sep 2011 00:32:52 +0100
Subject: get rid of the unused AttachmentsModule.ShowAttachInUserInventory()
---
.../Avatar/Attachments/AttachmentsModule.cs | 28 ----------------------
1 file changed, 28 deletions(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index e2e697e..dde6ca6 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -430,34 +430,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
return null;
}
-
- ///
- /// Update the user inventory to the attachment of an item
- ///
- ///
- ///
- ///
- ///
- ///
- private UUID ShowAttachInUserInventory(
- SceneObjectGroup att, IScenePresence sp, UUID itemID, uint attachmentPoint)
- {
-// m_log.DebugFormat(
-// "[ATTACHMENTS MODULE]: Updating inventory of {0} to show attachment of {1} {2} (item ID {3}) at {4}",
-// sp.Name, att.Name, att.LocalId, itemID, AttachmentPt);
-
- if (!att.IsDeleted)
- attachmentPoint = att.AttachmentPoint;
-
- InventoryItemBase item = new InventoryItemBase(itemID, sp.UUID);
- item = m_scene.InventoryService.GetItem(item);
-
- bool changed = sp.Appearance.SetAttachment((int)attachmentPoint, itemID, item.AssetID);
- if (changed && m_scene.AvatarFactory != null)
- m_scene.AvatarFactory.QueueAppearanceSave(sp.UUID);
-
- return att.UUID;
- }
///
/// Update the user inventory to reflect an attachment
--
cgit v1.1