diff options
Diffstat (limited to 'OpenSim/Services/InventoryService/XInventoryService.cs')
-rw-r--r-- | OpenSim/Services/InventoryService/XInventoryService.cs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index e3f0a19..3efdce4 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs | |||
@@ -342,17 +342,7 @@ namespace OpenSim.Services.InventoryService | |||
342 | m_Database.DeleteFolders("folderID", x.folderID.ToString()); | 342 | m_Database.DeleteFolders("folderID", x.folderID.ToString()); |
343 | } | 343 | } |
344 | 344 | ||
345 | XInventoryItem[] items = m_Database.GetItems( | 345 | m_Database.DeleteItems("parentFolderID", folder.id.ToString()); |
346 | new string[] { "parentFolderID" }, | ||
347 | new string[] { folder.ID.ToString() }); | ||
348 | |||
349 | List<UUID> itemlist = new List<UUID>(); | ||
350 | foreach (XInventoryItem i in items) | ||
351 | { | ||
352 | itemlist.Add(i.inventoryID); | ||
353 | } | ||
354 | |||
355 | DeleteItems(folder.Owner, itemlist); | ||
356 | 346 | ||
357 | return true; | 347 | return true; |
358 | } | 348 | } |