* Refactor: Remove some unused methods in Scene/InnerScene
parent
f3067ce6f9
commit
10564469c8
|
@ -287,27 +287,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
m_activeScripts += number;
|
||||
}
|
||||
|
||||
public void RemovePrim(uint localID, LLUUID avatar_deleter)
|
||||
{
|
||||
List<EntityBase> EntityList = GetEntities();
|
||||
|
||||
foreach (EntityBase obj in EntityList)
|
||||
{
|
||||
if (obj is SceneObjectGroup)
|
||||
{
|
||||
if (((SceneObjectGroup)obj).LocalId == localID)
|
||||
{
|
||||
if (m_parentScene.ExternalChecks.ExternalChecksCanDeleteObject(((SceneObjectGroup)obj).UUID, avatar_deleter))
|
||||
{
|
||||
m_parentScene.RemoveSceneObject((SceneObjectGroup)obj);
|
||||
m_numPrim--;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void DetachObject(uint objectLocalID, IClientAPI remoteClient)
|
||||
{
|
||||
List<EntityBase> EntityList = GetEntities();
|
||||
|
|
|
@ -1319,11 +1319,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
return AddNewPrim(uuid, position, rotation, treeShape);
|
||||
}
|
||||
|
||||
public void RemovePrim(uint localID, LLUUID avatar_deleter)
|
||||
{
|
||||
m_innerScene.RemovePrim(localID, avatar_deleter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add an object into the scene that has come from storage
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue