diff options
author | Justin Clarke Casey | 2008-05-03 18:13:32 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-03 18:13:32 +0000 |
commit | a5dfca8958a28da415719ba880a77138ec205842 (patch) | |
tree | d5dfd209e082ee17e565e50cc17acc977b8b0565 /OpenSim/Framework | |
parent | * Refactor: remove pointless agentId parameter from CachedUserInfo.AddItem() (diff) | |
download | opensim-SC-a5dfca8958a28da415719ba880a77138ec205842.zip opensim-SC-a5dfca8958a28da415719ba880a77138ec205842.tar.gz opensim-SC-a5dfca8958a28da415719ba880a77138ec205842.tar.bz2 opensim-SC-a5dfca8958a28da415719ba880a77138ec205842.tar.xz |
* 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)
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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 | |||
316 | /// </summary> | 316 | /// </summary> |
317 | /// <param name="userID"></param> | 317 | /// <param name="userID"></param> |
318 | /// <param name="itemInfo"></param> | 318 | /// <param name="itemInfo"></param> |
319 | public void UpdateItem(LLUUID userID, InventoryItemBase itemInfo) | 319 | public void UpdateItem(InventoryItemBase itemInfo) |
320 | { | 320 | { |
321 | if ((userID == UserProfile.ID) && HasInventory) | 321 | if (HasInventory) |
322 | { | 322 | { |
323 | m_commsManager.InventoryService.UpdateItem(itemInfo); | 323 | m_commsManager.InventoryService.UpdateItem(itemInfo); |
324 | } | 324 | } |
@@ -330,10 +330,10 @@ namespace OpenSim.Framework.Communications.Cache | |||
330 | /// <param name="userID"></param> | 330 | /// <param name="userID"></param> |
331 | /// <param name="item"></param> | 331 | /// <param name="item"></param> |
332 | /// <returns></returns> | 332 | /// <returns></returns> |
333 | public bool DeleteItem(LLUUID userID, InventoryItemBase item) | 333 | public bool DeleteItem(InventoryItemBase item) |
334 | { | 334 | { |
335 | bool result = false; | 335 | bool result = false; |
336 | if ((userID == UserProfile.ID) && HasInventory) | 336 | if (HasInventory) |
337 | { | 337 | { |
338 | result = RootFolder.DeleteItem(item.ID); | 338 | result = RootFolder.DeleteItem(item.ID); |
339 | if (result) | 339 | if (result) |