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. --- .../Framework/Library/LocalInventoryService.cs | 16 --------------- .../Inventory/HGInventoryBroker.cs | 23 ---------------------- .../Inventory/InventoryCache.cs | 10 +--------- .../Inventory/LocalInventoryServiceConnector.cs | 10 ---------- .../Inventory/RemoteXInventoryServiceConnector.cs | 9 --------- 5 files changed, 1 insertion(+), 67 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs b/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs index 49589fd..01814a1 100644 --- a/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs +++ b/OpenSim/Region/CoreModules/Framework/Library/LocalInventoryService.cs @@ -142,22 +142,6 @@ namespace OpenSim.Region.CoreModules.Framework.Library public List GetInventorySkeleton(UUID userId) { return null; } /// - /// Synchronous inventory fetch. - /// - /// - /// - public InventoryCollection GetUserInventory(UUID userID) { return null; } - - /// - /// Request the inventory for a user. This is an asynchronous operation that will call the callback when the - /// inventory has been received - /// - /// - /// - public void GetUserInventory(UUID userID, InventoryReceiptCallback callback) { } - - - /// /// Gets the user folder for the given folder-type /// /// diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs index 77a3c82..fd41187 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs @@ -316,29 +316,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory return connector.GetInventorySkeleton(userID); } - public InventoryCollection GetUserInventory(UUID userID) - { - string invURL = GetInventoryServiceURL(userID); - m_log.DebugFormat("[HG INVENTORY CONNECTOR]: GetUserInventory for {0} {1}", userID, invURL); - - if (invURL == null) // not there, forward to local inventory connector to resolve - return m_LocalGridInventoryService.GetUserInventory(userID); - - InventoryCollection c = m_Cache.GetUserInventory(userID); - if (c != null) - return c; - - IInventoryService connector = GetConnector(invURL); - c = connector.GetUserInventory(userID); - - m_Cache.Cache(userID, c); - return c; - } - - public void GetUserInventory(UUID userID, InventoryReceiptCallback callback) - { - } - public InventoryFolderBase GetRootFolder(UUID userID) { //m_log.DebugFormat("[HG INVENTORY CONNECTOR]: GetRootFolder for {0}", userID); diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs index 2fc8ee3..499ca5e 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * @@ -99,14 +99,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory m_Inventories.AddOrUpdate(userID, inv, 120); } - public InventoryCollection GetUserInventory(UUID userID) - { - InventoryCollection inv = null; - if (m_Inventories.TryGetValue(userID, out inv)) - return inv; - return null; - } - public InventoryCollection GetFolderContent(UUID userID, UUID folderID) { InventoryCollection inv = null; diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs index 6832b1f..f80fab3 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs @@ -164,16 +164,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory return m_InventoryService.GetInventorySkeleton(userId); } - public InventoryCollection GetUserInventory(UUID id) - { - return m_InventoryService.GetUserInventory(id); - } - - public void GetUserInventory(UUID userID, InventoryReceiptCallback callback) - { - m_InventoryService.GetUserInventory(userID, callback); - } - public InventoryFolderBase GetRootFolder(UUID userID) { return m_InventoryService.GetRootFolder(userID); diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs index 7f78076..166e4a1 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs @@ -172,15 +172,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory return m_RemoteConnector.GetInventorySkeleton(userId); } - public InventoryCollection GetUserInventory(UUID userID) - { - return m_RemoteConnector.GetUserInventory(userID); - } - - public void GetUserInventory(UUID userID, InventoryReceiptCallback callback) - { - } - public InventoryFolderBase GetRootFolder(UUID userID) { return m_RemoteConnector.GetRootFolder(userID); -- cgit v1.1