From a5dfca8958a28da415719ba880a77138ec205842 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 3 May 2008 18:13:32 +0000 Subject: * Refactor: remove redundant userId parameter from UpdateItem() and DeleteItem() * Put warning in remove folder method about non implementation (not that this is used anyway - may be legacy) --- OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs index ca9669a..86c24bc 100644 --- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs +++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs @@ -316,9 +316,9 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void UpdateItem(LLUUID userID, InventoryItemBase itemInfo) + public void UpdateItem(InventoryItemBase itemInfo) { - if ((userID == UserProfile.ID) && HasInventory) + if (HasInventory) { m_commsManager.InventoryService.UpdateItem(itemInfo); } @@ -330,10 +330,10 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public bool DeleteItem(LLUUID userID, InventoryItemBase item) + public bool DeleteItem(InventoryItemBase item) { bool result = false; - if ((userID == UserProfile.ID) && HasInventory) + if (HasInventory) { result = RootFolder.DeleteItem(item.ID); if (result) -- cgit v1.1