mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* 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)
This commit is contained in:
@@ -316,9 +316,9 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
/// </summary>
|
||||
/// <param name="userID"></param>
|
||||
/// <param name="itemInfo"></param>
|
||||
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
|
||||
/// <param name="userID"></param>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user