mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
remove dead code
This commit is contained in:
@@ -313,30 +313,6 @@ namespace OpenSim.Framework.Capabilities
|
||||
return caps;
|
||||
}
|
||||
|
||||
public Hashtable GetCapsDetails2(bool excludeSeed, HashSet<string> requestedCaps)
|
||||
{
|
||||
Hashtable caps = CapsHandlers.GetCapsDetails2(excludeSeed, requestedCaps);
|
||||
|
||||
lock (m_pollServiceHandlers)
|
||||
{
|
||||
foreach (KeyValuePair<string, PollServiceEventArgs> kvp in m_pollServiceHandlers)
|
||||
{
|
||||
if (!requestedCaps.Contains(kvp.Key))
|
||||
continue;
|
||||
caps[kvp.Key] = m_baseCapsURL + kvp.Value.Url;
|
||||
}
|
||||
}
|
||||
|
||||
// Add the external too
|
||||
foreach (KeyValuePair<string, string> kvp in ExternalCapsHandlers)
|
||||
{
|
||||
if (requestedCaps.Contains(kvp.Key))
|
||||
caps[kvp.Key] = kvp.Value;
|
||||
}
|
||||
|
||||
return caps;
|
||||
}
|
||||
|
||||
public void GetCapsDetailsLLSDxml(HashSet<string> requestedCaps, osUTF8 sb)
|
||||
{
|
||||
|
||||
|
||||
@@ -208,38 +208,6 @@ namespace OpenSim.Framework.Capabilities
|
||||
return caps;
|
||||
}
|
||||
|
||||
public Hashtable GetCapsDetails2(bool excludeSeed, HashSet<string> requestedCaps)
|
||||
{
|
||||
Hashtable caps = new Hashtable();
|
||||
if (requestedCaps is null)
|
||||
{
|
||||
lock (m_capsHandlers)
|
||||
{
|
||||
foreach (KeyValuePair<string, ISimpleStreamHandler> kvp in m_capsSimpleHandlers)
|
||||
caps[kvp.Key] = m_baseURL + kvp.Value.Path;
|
||||
foreach (KeyValuePair<string, IRequestHandler> kvp in m_capsHandlers)
|
||||
caps[kvp.Key] = m_baseURL + kvp.Value.Path;
|
||||
}
|
||||
return caps;
|
||||
}
|
||||
|
||||
lock (m_capsHandlers)
|
||||
{
|
||||
foreach(string capsName in requestedCaps)
|
||||
{
|
||||
if (excludeSeed && "SEED".Equals(capsName))
|
||||
continue;
|
||||
|
||||
if (m_capsSimpleHandlers.TryGetValue(capsName, out ISimpleStreamHandler shdr))
|
||||
caps[capsName] = m_baseURL + shdr.Path;
|
||||
else if (m_capsHandlers.TryGetValue(capsName, out IRequestHandler chdr))
|
||||
caps[capsName] = m_baseURL + chdr.Path;
|
||||
}
|
||||
}
|
||||
|
||||
return caps;
|
||||
}
|
||||
|
||||
public void GetCapsDetailsLLSDxml(HashSet<string> requestedCaps, osUTF8 sb)
|
||||
{
|
||||
lock (m_capsHandlers)
|
||||
|
||||
Reference in New Issue
Block a user