aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-03 22:39:33 +0000
committerJustin Clarke Casey2008-05-03 22:39:33 +0000
commit688940e8103f2b1f55bb48ebe2566d32f872b8f5 (patch)
tree979a633643581349471e3f91bf11bfa545191549 /OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
parent* Cleaned up code in Terrain, Tree and Map modules. (diff)
downloadopensim-SC_OLD-688940e8103f2b1f55bb48ebe2566d32f872b8f5.zip
opensim-SC_OLD-688940e8103f2b1f55bb48ebe2566d32f872b8f5.tar.gz
opensim-SC_OLD-688940e8103f2b1f55bb48ebe2566d32f872b8f5.tar.bz2
opensim-SC_OLD-688940e8103f2b1f55bb48ebe2566d32f872b8f5.tar.xz
* Refactor: Renaming item and folder tree search methods to have Find*() prefixes
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
index 0404477..92b08e5 100644
--- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
+++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
@@ -259,7 +259,7 @@ namespace OpenSim.Framework.Communications.Cache
259 return; 259 return;
260 } 260 }
261 261
262 if ((fold = libraryRoot.GetDescendentFolder(folderID)) != null) 262 if ((fold = libraryRoot.FindFolder(folderID)) != null)
263 { 263 {
264 remoteClient.SendInventoryFolderDetails( 264 remoteClient.SendInventoryFolderDetails(
265 libraryRoot.Owner, folderID, fold.RequestListOfItems(), 265 libraryRoot.Owner, folderID, fold.RequestListOfItems(),
@@ -308,7 +308,7 @@ namespace OpenSim.Framework.Communications.Cache
308 } 308 }
309 else 309 else
310 { 310 {
311 if ((fold = userProfile.RootFolder.GetDescendentFolder(folderID)) != null) 311 if ((fold = userProfile.RootFolder.FindFolder(folderID)) != null)
312 { 312 {
313// m_log.DebugFormat( 313// m_log.DebugFormat(
314// "[AGENT INVENTORY]: Found folder {0} for client {1}", 314// "[AGENT INVENTORY]: Found folder {0} for client {1}",
@@ -369,7 +369,7 @@ namespace OpenSim.Framework.Communications.Cache
369 return libraryRoot.RequestListOfItems(); 369 return libraryRoot.RequestListOfItems();
370 } 370 }
371 371
372 if ((fold = libraryRoot.GetDescendentFolder(folderID)) != null) 372 if ((fold = libraryRoot.FindFolder(folderID)) != null)
373 { 373 {
374 return fold.RequestListOfItems(); 374 return fold.RequestListOfItems();
375 } 375 }
@@ -410,7 +410,7 @@ namespace OpenSim.Framework.Communications.Cache
410 } 410 }
411 else 411 else
412 { 412 {
413 if ((fold = userProfile.RootFolder.GetDescendentFolder(folderID)) != null) 413 if ((fold = userProfile.RootFolder.FindFolder(folderID)) != null)
414 { 414 {
415 return fold.RequestListOfItems(); 415 return fold.RequestListOfItems();
416 } 416 }
@@ -479,7 +479,7 @@ namespace OpenSim.Framework.Communications.Cache
479 { 479 {
480 if (userProfile.HasInventory) 480 if (userProfile.HasInventory)
481 { 481 {
482 InventoryItemBase item = userProfile.RootFolder.HasItem(itemID); 482 InventoryItemBase item = userProfile.RootFolder.FindItem(itemID);
483 if (item != null) 483 if (item != null)
484 { 484 {
485 remoteClient.SendInventoryItemDetails(ownerID, item); 485 remoteClient.SendInventoryItemDetails(ownerID, item);