aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/InventoryService
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-23 08:17:25 +0300
committerOren Hurvitz2014-04-23 14:38:33 +0100
commit018832522c3c5e37f027bade05c93b88d6ca3827 (patch)
treeff5b67195e19263505140c121920e6a6be3b4ddc /OpenSim/Services/InventoryService
parentEliminated 'Obsolete' warning: don't call do-nothing function SetPreviousAppe... (diff)
downloadopensim-SC_OLD-018832522c3c5e37f027bade05c93b88d6ca3827.zip
opensim-SC_OLD-018832522c3c5e37f027bade05c93b88d6ca3827.tar.gz
opensim-SC_OLD-018832522c3c5e37f027bade05c93b88d6ca3827.tar.bz2
opensim-SC_OLD-018832522c3c5e37f027bade05c93b88d6ca3827.tar.xz
Removed GetUserInventory(). It wasn't being used, and was creating warnings because it's Obsolete.
Diffstat (limited to 'OpenSim/Services/InventoryService')
-rw-r--r--OpenSim/Services/InventoryService/XInventoryService.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs
index 7bad4b0..3bee433 100644
--- a/OpenSim/Services/InventoryService/XInventoryService.cs
+++ b/OpenSim/Services/InventoryService/XInventoryService.cs
@@ -615,34 +615,6 @@ namespace OpenSim.Services.InventoryService
615 return m_Database.GetAssetPermissions(principalID, assetID); 615 return m_Database.GetAssetPermissions(principalID, assetID);
616 } 616 }
617 617
618 public virtual InventoryCollection GetUserInventory(UUID userID)
619 {
620 InventoryCollection userInventory = new InventoryCollection();
621 userInventory.UserID = userID;
622 userInventory.Folders = new List<InventoryFolderBase>();
623 userInventory.Items = new List<InventoryItemBase>();
624
625 List<InventoryFolderBase> skel = GetInventorySkeleton(userID);
626 if (skel != null)
627 {
628 foreach (InventoryFolderBase f in skel)
629 {
630 InventoryCollection c = GetFolderContent(userID, f.ID);
631 if (c != null && c.Items != null && c.Items.Count > 0)
632 userInventory.Items.AddRange(c.Items);
633 if (c != null && c.Folders != null && c.Folders.Count > 0)
634 userInventory.Folders.AddRange(c.Folders);
635 }
636 }
637 m_log.DebugFormat("[XINVENTORY SERVICE]: GetUserInventory for user {0} returning {1} folders and {2} items",
638 userID, userInventory.Folders.Count, userInventory.Items.Count);
639 return userInventory;
640 }
641
642 public void GetUserInventory(UUID userID, InventoryReceiptCallback callback)
643 {
644 }
645
646 // Unused. 618 // Unused.
647 // 619 //
648 public bool HasInventoryForUser(UUID userID) 620 public bool HasInventoryForUser(UUID userID)