mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Remove unnecessary AgentCircuitData null check from Scene.AddNewClient().
The only caller is the LLUDP stack and this has to validate the UDP circuit itself, so we know that it exists. This allows us to eliminate another null check elsewhere and simplifies the method contract
This commit is contained in:
@@ -74,9 +74,7 @@ namespace OpenSim.Framework
|
||||
/// <param name="client"></param>
|
||||
/// <param name="type">The type of agent to add.</param>
|
||||
/// <returns>
|
||||
/// The scene agent if the new client was added.
|
||||
/// Null if the required scene agent already existed or no scene agent was added because the required client circuit doesn't exist.
|
||||
/// </returns>
|
||||
/// The scene agent if the new client was added or if an agent that already existed.</returns>
|
||||
ISceneAgent AddNewClient(IClientAPI client, PresenceType type);
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user