Drop some unnecessary ContainsKey() checking before Remove() in BaseHttpServer()
Remove() presumably does this check anyway since it just returns false if the key is not in the collection.0.7.2-post-fixes
parent
e5286b7b7c
commit
435aefe1bf
|
@ -1814,12 +1814,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
public void RemovePollServiceHTTPHandler(string httpMethod, string path)
|
||||
{
|
||||
lock (m_pollHandlers)
|
||||
{
|
||||
if (m_pollHandlers.ContainsKey(path))
|
||||
{
|
||||
m_pollHandlers.Remove(path);
|
||||
}
|
||||
}
|
||||
m_pollHandlers.Remove(path);
|
||||
|
||||
RemoveHTTPHandler(httpMethod, path);
|
||||
}
|
||||
|
@ -1843,12 +1838,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
public void RemoveXmlRPCHandler(string method)
|
||||
{
|
||||
lock (m_rpcHandlers)
|
||||
{
|
||||
if (m_rpcHandlers.ContainsKey(method))
|
||||
{
|
||||
m_rpcHandlers.Remove(method);
|
||||
}
|
||||
}
|
||||
m_rpcHandlers.Remove(method);
|
||||
}
|
||||
|
||||
public bool RemoveLLSDHandler(string path, LLSDMethod handler)
|
||||
|
|
Loading…
Reference in New Issue