Gods module cleanup

avinationmerge
Melanie 2013-04-25 01:37:18 +02:00
parent 3e818eaeb5
commit 51e05dcb5b
1 changed files with 0 additions and 10 deletions

View File

@ -67,9 +67,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
protected Scene m_scene; protected Scene m_scene;
protected IDialogModule m_dialogModule; protected IDialogModule m_dialogModule;
protected Dictionary<UUID, string> m_capsDict =
new Dictionary<UUID, string>();
protected IDialogModule DialogModule protected IDialogModule DialogModule
{ {
get get
@ -91,7 +88,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
m_scene.RegisterModuleInterface<IGodsModule>(this); m_scene.RegisterModuleInterface<IGodsModule>(this);
m_scene.EventManager.OnNewClient += SubscribeToClientEvents; m_scene.EventManager.OnNewClient += SubscribeToClientEvents;
m_scene.EventManager.OnRegisterCaps += OnRegisterCaps; m_scene.EventManager.OnRegisterCaps += OnRegisterCaps;
m_scene.EventManager.OnClientClosed += OnClientClosed;
scene.EventManager.OnIncomingInstantMessage += scene.EventManager.OnIncomingInstantMessage +=
OnIncomingInstantMessage; OnIncomingInstantMessage;
} }
@ -127,15 +123,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
client.OnRequestGodlikePowers -= RequestGodlikePowers; client.OnRequestGodlikePowers -= RequestGodlikePowers;
} }
private void OnClientClosed(UUID agentID, Scene scene)
{
m_capsDict.Remove(agentID);
}
private void OnRegisterCaps(UUID agentID, Caps caps) private void OnRegisterCaps(UUID agentID, Caps caps)
{ {
string uri = "/CAPS/" + UUID.Random(); string uri = "/CAPS/" + UUID.Random();
m_capsDict[agentID] = uri;
caps.RegisterHandler("UntrustedSimulatorMessage", caps.RegisterHandler("UntrustedSimulatorMessage",
new RestStreamHandler("POST", uri, new RestStreamHandler("POST", uri,