* Minor inventory code cleanup following on from last patch

0.6.0-stable
Justin Clarke Casey 2008-04-11 18:19:21 +00:00
parent a5176c2e2c
commit 649f304e76
4 changed files with 1 additions and 14 deletions

View File

@ -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>

View File

@ -37,10 +37,6 @@ namespace OpenSim.Framework.Communications
/// Callback used when a user's inventory is received from the inventory service
/// </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.

View File

@ -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));
}
}

View File

@ -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;
}
}