Remove unused SceneSetupHelpers.DeleteObjectAsync().
Calling async code in automated tests is never a good idea - things become very fragile very quickly0.7.1-dev
parent
9d668b09ca
commit
b3a1d8c7f7
|
@ -505,24 +505,5 @@ namespace OpenSim.Tests.Common.Setup
|
|||
|
||||
return part;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Delete a scene object asynchronously
|
||||
/// </summary>
|
||||
/// <param name="scene"></param>
|
||||
/// <param name="part"></param>
|
||||
/// <param name="action"></param>
|
||||
/// <param name="destinationId"></param>
|
||||
/// <param name="client"></param>
|
||||
public static void DeleteSceneObjectAsync(
|
||||
TestScene scene, SceneObjectPart part, DeRezAction action, UUID destinationId, IClientAPI client)
|
||||
{
|
||||
// Turn off the timer on the async sog deleter - we'll crank it by hand within a unit test
|
||||
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
||||
sogd.Enabled = false;
|
||||
|
||||
scene.DeRezObjects(client, new List<uint>() { part.LocalId }, UUID.Zero, action, destinationId);
|
||||
sogd.InventoryDeQueueAndDelete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue