remove dead code

This commit is contained in:
UbitUmarov
2024-04-17 19:46:43 +01:00
parent 68c4724847
commit 863ff6bc9f
2 changed files with 0 additions and 56 deletions

View File

@@ -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)
{

View File

@@ -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)