Removed unused events in SceneGraph: OnObjectCreate, OnObjectRemove, OnObjectDuplicate
parent
7e76397a26
commit
488fe0ae9c
|
@ -60,10 +60,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
protected internal event PhysicsCrash UnRecoverableError;
|
protected internal event PhysicsCrash UnRecoverableError;
|
||||||
private PhysicsCrash handlerPhysicsCrash = null;
|
private PhysicsCrash handlerPhysicsCrash = null;
|
||||||
|
|
||||||
public event ObjectDuplicateDelegate OnObjectDuplicate;
|
|
||||||
public event ObjectCreateDelegate OnObjectCreate;
|
|
||||||
public event ObjectDeleteDelegate OnObjectRemove;
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Fields
|
#region Fields
|
||||||
|
@ -404,9 +400,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (attachToBackup)
|
if (attachToBackup)
|
||||||
sceneObject.AttachToBackup();
|
sceneObject.AttachToBackup();
|
||||||
|
|
||||||
if (OnObjectCreate != null)
|
|
||||||
OnObjectCreate(sceneObject);
|
|
||||||
|
|
||||||
lock (SceneObjectGroupsByFullID)
|
lock (SceneObjectGroupsByFullID)
|
||||||
SceneObjectGroupsByFullID[sceneObject.UUID] = sceneObject;
|
SceneObjectGroupsByFullID[sceneObject.UUID] = sceneObject;
|
||||||
|
|
||||||
|
@ -456,9 +449,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
RemovePhysicalPrim(grp.PrimCount);
|
RemovePhysicalPrim(grp.PrimCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OnObjectRemove != null)
|
|
||||||
OnObjectRemove(Entities[uuid]);
|
|
||||||
|
|
||||||
lock (SceneObjectGroupsByFullID)
|
lock (SceneObjectGroupsByFullID)
|
||||||
SceneObjectGroupsByFullID.Remove(grp.UUID);
|
SceneObjectGroupsByFullID.Remove(grp.UUID);
|
||||||
|
|
||||||
|
@ -1979,9 +1969,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// required for physics to update it's position
|
// required for physics to update it's position
|
||||||
copy.AbsolutePosition = copy.AbsolutePosition;
|
copy.AbsolutePosition = copy.AbsolutePosition;
|
||||||
|
|
||||||
if (OnObjectDuplicate != null)
|
|
||||||
OnObjectDuplicate(original, copy);
|
|
||||||
|
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue