* Minor inventory code cleanup following on from last patch
parent
a5176c2e2c
commit
649f304e76
|
@ -200,7 +200,7 @@ namespace OpenSim.Framework.Communications.Cache
|
|||
/// <summary>
|
||||
/// Callback invoked when an item is received from an async request to the inventory service.
|
||||
///
|
||||
/// FIXME: We're assuming here that items are always received after all the folders have been
|
||||
/// We're assuming here that items are always received after all the folders have been
|
||||
/// received.
|
||||
/// </summary>
|
||||
/// <param name="userID"></param>
|
||||
|
|
|
@ -38,10 +38,6 @@ namespace OpenSim.Framework.Communications
|
|||
/// </summary>
|
||||
public delegate void InventoryReceiptCallback(LLUUID userId, ICollection<InventoryFolderImpl> folders, ICollection<InventoryItemBase> items);
|
||||
|
||||
//public delegate void InventoryFolderInfo(LLUUID userID, InventoryFolderImpl folderInfo);
|
||||
|
||||
//public delegate void InventoryItemInfo(LLUUID userID, InventoryItemBase itemInfo);
|
||||
|
||||
/// <summary>
|
||||
/// Defines all the operations one can perform on a user's inventory.
|
||||
/// </summary>
|
||||
|
|
|
@ -52,7 +52,6 @@ namespace OpenSim.Region.Communications.Local
|
|||
{
|
||||
if (folder.ParentID == LLUUID.Zero)
|
||||
{
|
||||
//rootFolder = RequestInventoryFolder(userID, folder, callback);
|
||||
rootFolder = new InventoryFolderImpl(folder);
|
||||
folders.Add(rootFolder);
|
||||
}
|
||||
|
@ -64,7 +63,6 @@ namespace OpenSim.Region.Communications.Local
|
|||
{
|
||||
if (folder.ID != rootFolder.ID)
|
||||
{
|
||||
//RequestInventoryFolder(userID, folder, callback);
|
||||
folders.Add(new InventoryFolderImpl(folder));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,7 +114,6 @@ namespace OpenSim.Region.Communications.OGS1
|
|||
{
|
||||
rootFolder = new InventoryFolderImpl(folder);
|
||||
folders.Add(rootFolder);
|
||||
//request.FolderCallBack(userID, newfolder);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -125,14 +124,12 @@ namespace OpenSim.Region.Communications.OGS1
|
|||
if (folder.ID != rootFolder.ID)
|
||||
{
|
||||
folders.Add(new InventoryFolderImpl(folder));
|
||||
//request.FolderCallBack(userID, newfolder);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (InventoryItemBase item in response.AllItems)
|
||||
{
|
||||
items.Add(item);
|
||||
//request.ItemCallBack(userID, item);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -237,14 +234,10 @@ namespace OpenSim.Region.Communications.OGS1
|
|||
{
|
||||
public LLUUID UserID;
|
||||
public InventoryReceiptCallback Callback;
|
||||
//public InventoryFolderInfo FolderCallBack;
|
||||
//public InventoryItemInfo ItemCallBack;
|
||||
|
||||
public InventoryRequest(LLUUID userId, InventoryReceiptCallback callback)
|
||||
{
|
||||
UserID = userId;
|
||||
//FolderCallBack = folderCall;
|
||||
//ItemCallBack = itemCall;
|
||||
Callback = callback;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue