refactor: Fold 3 ScenePresence() constructors into one since only one is called.

bulletsim
Justin Clark-Casey (justincc) 2011-08-18 01:11:23 +01:00
parent c1a34cd8da
commit 45c37ef494
1 changed files with 2 additions and 9 deletions

View File

@ -713,15 +713,12 @@ namespace OpenSim.Region.Framework.Scenes
#region Constructor(s) #region Constructor(s)
public ScenePresence() public ScenePresence(
IClientAPI client, Scene world, RegionInfo reginfo, AvatarAppearance appearance, PresenceType type)
{ {
m_sendCourseLocationsMethod = SendCoarseLocationsDefault; m_sendCourseLocationsMethod = SendCoarseLocationsDefault;
CreateSceneViewer(); CreateSceneViewer();
m_animator = new ScenePresenceAnimator(this); m_animator = new ScenePresenceAnimator(this);
}
private ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, PresenceType type) : this()
{
PresenceType = type; PresenceType = type;
m_DrawDistance = world.DefaultDrawDistance; m_DrawDistance = world.DefaultDrawDistance;
m_rootRegionHandle = reginfo.RegionHandle; m_rootRegionHandle = reginfo.RegionHandle;
@ -768,11 +765,7 @@ namespace OpenSim.Region.Framework.Scenes
RegisterToEvents(); RegisterToEvents();
SetDirectionVectors(); SetDirectionVectors();
}
public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, AvatarAppearance appearance, PresenceType type)
: this(client, world, reginfo, type)
{
m_appearance = appearance; m_appearance = appearance;
} }