From 7948033565a106395eb10ae3e169c9c4fa6cbdba Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 18 Dec 2007 08:41:23 +0000 Subject: * Removed redundant code in RestService.cs * Removed unchecked TryParse, replaced with Parse as we were not checking for success and could lead to weirdness if an exception is ignored. * Removed unused variable m_newAvatar * Removed several unused try{}catch(Exception e){}'s. * Added null assignment in simpleapp to prevent warning. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 3 --- 1 file changed, 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index bf47277..86ff65e 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -63,7 +63,6 @@ namespace OpenSim.Region.Environment.Scenes // Agent moves with a PID controller causing a force to be exerted. private bool m_newForce = false; - private bool m_newAvatar = false; private bool m_newCoarseLocations = true; private bool m_gotAllObjectsInScene = false; @@ -457,7 +456,6 @@ namespace OpenSim.Region.Environment.Scenes /// public void MakeRootAgent(LLVector3 pos, bool isFlying) { - m_newAvatar = true; m_isChildAgent = false; AbsolutePosition = pos; @@ -1104,7 +1102,6 @@ namespace OpenSim.Region.Environment.Scenes if (!m_isChildAgent) { m_scene.InformClientOfNeighbours(this); - m_newAvatar = false; } SendFullUpdateToAllClients(); -- cgit v1.1