From 018832522c3c5e37f027bade05c93b88d6ca3827 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Wed, 23 Apr 2014 08:17:25 +0300 Subject: Removed GetUserInventory(). It wasn't being used, and was creating warnings because it's Obsolete. --- .../Inventory/XInventoryServicesConnector.cs | 41 +--------------------- 1 file changed, 1 insertion(+), 40 deletions(-) (limited to 'OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs') diff --git a/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs b/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs index 36d4ae2..d258293 100644 --- a/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs +++ b/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs @@ -484,45 +484,6 @@ namespace OpenSim.Services.Connectors return 0; } - public InventoryCollection GetUserInventory(UUID principalID) - { - InventoryCollection inventory = new InventoryCollection(); - inventory.Folders = new List(); - inventory.Items = new List(); - inventory.UserID = principalID; - - try - { - Dictionary ret = MakeRequest("GETUSERINVENTORY", - new Dictionary { - { "PRINCIPAL", principalID.ToString() } - }); - - if (!CheckReturn(ret)) - return null; - - Dictionary folders = - (Dictionary)ret["FOLDERS"]; - Dictionary items = - (Dictionary)ret["ITEMS"]; - - foreach (Object o in folders.Values) // getting the values directly, we don't care about the keys folder_i - inventory.Folders.Add(BuildFolder((Dictionary)o)); - foreach (Object o in items.Values) // getting the values directly, we don't care about the keys item_i - inventory.Items.Add(BuildItem((Dictionary)o)); - } - catch (Exception e) - { - m_log.Error("[XINVENTORY SERVICES CONNECTOR]: Exception in GetUserInventory: ", e); - } - - return inventory; - } - - public void GetUserInventory(UUID principalID, InventoryReceiptCallback callback) - { - } - public bool HasInventoryForUser(UUID principalID) { return false; @@ -607,4 +568,4 @@ namespace OpenSim.Services.Connectors return item; } } -} \ No newline at end of file +} -- cgit v1.1