aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/IScene.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-12-08 19:25:24 +0000
committerJustin Clark-Casey (justincc)2011-12-08 19:25:24 +0000
commit0e265889dd909d23b45175ec0e6f2d52725c008c (patch)
tree3f9d117d0f7a6a2303d0c562137abf198d072f96 /OpenSim/Framework/IScene.cs
parentminor: remove some mono compiler warnings (diff)
downloadopensim-SC-0e265889dd909d23b45175ec0e6f2d52725c008c.zip
opensim-SC-0e265889dd909d23b45175ec0e6f2d52725c008c.tar.gz
opensim-SC-0e265889dd909d23b45175ec0e6f2d52725c008c.tar.bz2
opensim-SC-0e265889dd909d23b45175ec0e6f2d52725c008c.tar.xz
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
Diffstat (limited to 'OpenSim/Framework/IScene.cs')
-rw-r--r--OpenSim/Framework/IScene.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Framework/IScene.cs b/OpenSim/Framework/IScene.cs
index 6919c48..e0e023d 100644
--- a/OpenSim/Framework/IScene.cs
+++ b/OpenSim/Framework/IScene.cs
@@ -74,9 +74,7 @@ namespace OpenSim.Framework
74 /// <param name="client"></param> 74 /// <param name="client"></param>
75 /// <param name="type">The type of agent to add.</param> 75 /// <param name="type">The type of agent to add.</param>
76 /// <returns> 76 /// <returns>
77 /// The scene agent if the new client was added. 77 /// The scene agent if the new client was added or if an agent that already existed.</returns>
78 /// Null if the required scene agent already existed or no scene agent was added because the required client circuit doesn't exist.
79 /// </returns>
80 ISceneAgent AddNewClient(IClientAPI client, PresenceType type); 78 ISceneAgent AddNewClient(IClientAPI client, PresenceType type);
81 79
82 /// <summary> 80 /// <summary>