From 5d2a157e64f19a061a37d5458b34cc563ee288a1 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 10 Aug 2009 10:48:21 -0700 Subject: First pass at cleaning up old OGS1 and Local Inventory: removed everything-inventory in CommsManager, which wasn't actively used anymore. --- .../Communications/CommunicationsManager.cs | 114 --------------------- 1 file changed, 114 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs index e1a70e5..e9a6adb 100644 --- a/OpenSim/Framework/Communications/CommunicationsManager.cs +++ b/OpenSim/Framework/Communications/CommunicationsManager.cs @@ -109,120 +109,6 @@ namespace OpenSim.Framework.Communications m_userProfileCacheService = new UserProfileCacheService(this, libraryRootFolder); } - #region Inventory - protected string m_defaultInventoryHost = "default"; - - protected List m_inventoryServices = new List(); - // protected IInventoryServices m_inventoryService; - protected List m_secureinventoryServices = new List(); - - public ISecureInventoryService SecureInventoryService - { - get - { - if (m_secureinventoryServices.Count > 0) - { - // return m_inventoryServices[0]; - ISecureInventoryService invService; - if (TryGetSecureInventoryService(m_defaultInventoryHost, out invService)) - { - return invService; - } - } - return null; - } - } - - public IInventoryServices InventoryService - { - get - { - if (m_inventoryServices.Count > 0) - { - // return m_inventoryServices[0]; - IInventoryServices invService; - if (TryGetInventoryService(m_defaultInventoryHost, out invService)) - { - return invService; - } - } - return null; - } - } - - public bool TryGetSecureInventoryService(string host, out ISecureInventoryService inventoryService) - { - if ((host == string.Empty) || (host == "default")) - { - host = m_defaultInventoryHost; - } - - lock (m_secureinventoryServices) - { - foreach (ISecureInventoryService service in m_secureinventoryServices) - { - if (service.Host == host) - { - inventoryService = service; - return true; - } - } - } - - inventoryService = null; - return false; - } - - public bool TryGetInventoryService(string host, out IInventoryServices inventoryService) - { - if ((host == string.Empty) || (host == "default")) - { - host = m_defaultInventoryHost; - } - - lock (m_inventoryServices) - { - foreach (IInventoryServices service in m_inventoryServices) - { - if (service.Host == host) - { - inventoryService = service; - return true; - } - } - } - - inventoryService = null; - return false; - } - - public virtual void AddInventoryService(string hostUrl) - { - - } - - public virtual void AddSecureInventoryService(string hostUrl) - { - - } - - public virtual void AddSecureInventoryService(ISecureInventoryService service) - { - lock (m_secureinventoryServices) - { - m_secureinventoryServices.Add(service); - } - } - - public virtual void AddInventoryService(IInventoryServices service) - { - lock (m_inventoryServices) - { - m_inventoryServices.Add(service); - } - } - - #endregion #region Friend Methods -- cgit v1.1