fix(core): Cleans up networking (#386)

- [X] Deletes some unused networking code.
This commit is contained in:
Kamron Batman 2021-01-05 00:41:22 -08:00 committed by GitHub
parent 3dd0d8f42b
commit 126b80f74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 94 deletions

View file

@ -414,36 +414,6 @@ namespace Server.Network
}
}
/**
* Send data using a circular buffer from SendPipe
*/
public void Send(ref CircularBuffer<byte> buffer, int length)
{
if (Connection == null || BlockAllPackets || length <= 0)
{
return;
}
try
{
// _packetEncoder?.Invoke(ref buffer, ref length);
if (CompressionEnabled)
{
NetworkCompression.Compress(ref buffer, ref length); // This will be changed soon
}
SendPipe.Writer.Advance((uint)length);
}
catch (Exception ex)
{
#if DEBUG
Console.WriteLine(ex);
TraceException(ex);
#endif
Dispose();
}
}
public virtual void Send(Packet p)
{
if (Connection == null || BlockAllPackets)