From bafea2282a95017099578a0a31a908e746161414 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 26 Nov 2011 01:39:23 +0000
Subject: Rip out unused Scene.HandleFetchInventoryDescendentsCAPS().
This has been handled by WebFetchInvDescHandler.Fetch() for some time.
---
.../Framework/Scenes/Scene.PacketHandlers.cs | 58 ----------------------
1 file changed, 58 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
index 270e582..2ac6387 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
@@ -511,64 +511,6 @@ namespace OpenSim.Region.Framework.Scenes
SendInventoryDelegate d = (SendInventoryDelegate)iar.AsyncState;
d.EndInvoke(iar);
}
-
- ///
- /// Handle the caps inventory descendents fetch.
- ///
- /// Since the folder structure is sent to the client on login, I believe we only need to handle items.
- /// Diva comment 8/13/2009: what if someone gave us a folder in the meantime??
- ///
- ///
- ///
- ///
- ///
- ///
- ///
- /// null if the inventory look up failed
- public InventoryCollection HandleFetchInventoryDescendentsCAPS(UUID agentID, UUID folderID, UUID ownerID,
- bool fetchFolders, bool fetchItems, int sortOrder, out int version)
- {
- m_log.DebugFormat(
- "[INVENTORY CACHE]: Fetching folders ({0}), items ({1}) from {2} for agent {3}",
- fetchFolders, fetchItems, folderID, agentID);
-
- // FIXME MAYBE: We're not handling sortOrder!
-
- // TODO: This code for looking in the folder for the library should be folded back into the
- // CachedUserInfo so that this class doesn't have to know the details (and so that multiple libraries, etc.
- // can be handled transparently).
- InventoryFolderImpl fold;
- if (LibraryService != null && LibraryService.LibraryRootFolder != null)
- if ((fold = LibraryService.LibraryRootFolder.FindFolder(folderID)) != null)
- {
- version = 0;
- InventoryCollection ret = new InventoryCollection();
- ret.Folders = new List();
- ret.Items = fold.RequestListOfItems();
-
- return ret;
- }
-
- InventoryCollection contents = new InventoryCollection();
-
- if (folderID != UUID.Zero)
- {
- contents = InventoryService.GetFolderContent(agentID, folderID);
- InventoryFolderBase containingFolder = new InventoryFolderBase();
- containingFolder.ID = folderID;
- containingFolder.Owner = agentID;
- containingFolder = InventoryService.GetFolder(containingFolder);
- version = containingFolder.Version;
- }
- else
- {
- // Lost itemsm don't really need a version
- version = 1;
- }
-
- return contents;
-
- }
///
/// Handle an inventory folder creation request from the client.
--
cgit v1.1
From 86cc00aaa8dba93ea614460ceab7d6ba5e1adec5 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 26 Nov 2011 01:52:12 +0000
Subject: minor: formatting changes in Scene.PacketHandlers.cs
---
OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
index 2ac6387..6ba74c7 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
@@ -330,7 +330,7 @@ namespace OpenSim.Region.Framework.Scenes
}
}
}
- }
+ }
public virtual void ProcessObjectDeGrab(uint localID, IClientAPI remoteClient, List surfaceArgs)
{
@@ -484,6 +484,7 @@ namespace OpenSim.Region.Framework.Scenes
// can be handled transparently).
InventoryFolderImpl fold = null;
if (LibraryService != null && LibraryService.LibraryRootFolder != null)
+ {
if ((fold = LibraryService.LibraryRootFolder.FindFolder(folderID)) != null)
{
remoteClient.SendInventoryFolderDetails(
@@ -491,6 +492,7 @@ namespace OpenSim.Region.Framework.Scenes
fold.RequestListOfFolders(), fold.Version, fetchFolders, fetchItems);
return;
}
+ }
// We're going to send the reply async, because there may be
// an enormous quantity of packets -- basically the entire inventory!
@@ -585,14 +587,13 @@ namespace OpenSim.Region.Framework.Scenes
}
}
+ delegate void PurgeFolderDelegate(UUID userID, UUID folder);
+
///
/// This should delete all the items and folders in the given directory.
///
///
///
-
- delegate void PurgeFolderDelegate(UUID userID, UUID folder);
-
public void HandlePurgeInventoryDescendents(IClientAPI remoteClient, UUID folderID)
{
PurgeFolderDelegate d = PurgeFolderAsync;
@@ -606,7 +607,6 @@ namespace OpenSim.Region.Framework.Scenes
}
}
-
private void PurgeFolderAsync(UUID userID, UUID folderID)
{
InventoryFolderBase folder = new InventoryFolderBase(folderID, userID);
--
cgit v1.1