From 35dec2e53a7e79f7a1cc6db954723ca9769c993b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 28 Mar 2008 17:37:55 +0000 Subject: * Refactor: Eliminate RequestUsersRoot() redundant method --- .../Framework/Communications/InventoryServiceBase.cs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 78de4a5..595fa65 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs @@ -110,18 +110,9 @@ namespace OpenSim.Framework.Communications } // See IInventoryServices - public InventoryFolderBase RequestUsersRoot(LLUUID userID) - { - foreach (KeyValuePair plugin in m_plugins) - { - return plugin.Value.getUserRootFolder(userID); - } - return null; - } - - // See IInventoryServices public void MoveInventoryFolder(LLUUID userID, InventoryFolderBase folder) { + // FIXME: Probably doesn't do what was originally intended - only ever queries the first plugin foreach (KeyValuePair plugin in m_plugins) { plugin.Value.moveInventoryFolder(folder); @@ -137,7 +128,12 @@ namespace OpenSim.Framework.Communications // See IInventoryServices public InventoryFolderBase RequestRootFolder(LLUUID userID) { - return RequestUsersRoot(userID); + // FIXME: Probably doesn't do what was originally intended - only ever queries the first plugin + foreach (KeyValuePair plugin in m_plugins) + { + return plugin.Value.getUserRootFolder(userID); + } + return null; } // See IInventoryServices @@ -149,7 +145,7 @@ namespace OpenSim.Framework.Communications // See IInventoryServices public void CreateNewUserInventory(LLUUID user) { - InventoryFolderBase existingRootFolder = RequestUsersRoot(user); + InventoryFolderBase existingRootFolder = RequestRootFolder(user); if (null != existingRootFolder) { -- cgit v1.1