From 2a76b2a417a704f4893e66347090f9f752114c1b Mon Sep 17 00:00:00 2001 From: diva Date: Thu, 19 Mar 2009 21:43:35 +0000 Subject: Moving GetInventoryItem up to InventoryServiceBase, since this seems like a pretty fundamental function. --- OpenSim/Framework/Communications/InventoryServiceBase.cs | 10 ++++++++++ .../Plugins/OpenSim/OpenSimInventoryService.cs | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index de76415..8068080 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs @@ -321,6 +321,16 @@ namespace OpenSim.Framework.Communications } } + public InventoryItemBase GetInventoryItem(UUID itemID) + { + foreach (IInventoryDataPlugin plugin in m_plugins) + { + return plugin.getInventoryItem(itemID); + } + + return null; + } + /// /// Used to create a new user inventory. /// diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs index 3ddd07d..d9de29f 100644 --- a/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryService.cs @@ -54,15 +54,5 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim return folder; } - - public InventoryItemBase GetInventoryItem(UUID itemID) - { - foreach (IInventoryDataPlugin plugin in m_plugins) - { - return plugin.getInventoryItem(itemID); - } - - return null; - } } } -- cgit v1.1