removed a redundant function; try to make a particular vi coder happy about removed comments

This commit is contained in:
UbitUmarov
2019-02-25 23:05:11 +00:00
parent d01165818d
commit 91fab70236
2 changed files with 7 additions and 23 deletions

View File

@@ -182,22 +182,6 @@ namespace OpenMetaverse
try { m_udpSocket.Close(); } catch { }
}
public UDPPacketBuffer GetNewUDPBuffer()
{
lock (m_udpBuffersPoolLock)
{
if (m_udpBuffersPoolPtr >= 0)
{
UDPPacketBuffer buf = m_udpBuffersPool[m_udpBuffersPoolPtr];
m_udpBuffersPool[m_udpBuffersPoolPtr] = null;
m_udpBuffersPoolPtr--;
buf.RemoteEndPoint = new IPEndPoint(IPAddress.Any, 0);
return buf;
}
}
return new UDPPacketBuffer(new IPEndPoint(IPAddress.Any, 0));
}
public UDPPacketBuffer GetNewUDPBuffer(IPEndPoint remoteEndpoint)
{
lock (m_udpBuffersPoolLock)
@@ -353,7 +337,7 @@ namespace OpenMetaverse
if (!IsRunningInbound)
return;
UDPPacketBuffer buf = GetNewUDPBuffer();
UDPPacketBuffer buf = GetNewUDPBuffer(new IPEndPoint(IPAddress.Any, 0)); // we need a fresh one here, for now at least
try
{
// kick off an async read