Removed NetworkClient.m_MsgReader because it wasn't used anymore

This commit is contained in:
vis2k 2018-08-06 20:16:49 +02:00
parent 96f48fdbba
commit a4cce5b3c5

View File

@ -33,7 +33,6 @@ public class NetworkClient
protected NetworkConnection m_Connection;
byte[] m_MsgBuffer;
NetworkReader m_MsgReader;
protected enum ConnectState
{
@ -89,7 +88,6 @@ public NetworkClient()
{
if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); }
m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize];
m_MsgReader = new NetworkReader(m_MsgBuffer);
AddClient(this);
}
@ -97,7 +95,6 @@ public NetworkClient(NetworkConnection conn)
{
if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); }
m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize];
m_MsgReader = new NetworkReader(m_MsgBuffer);
AddClient(this);
SetActive(true);
@ -416,7 +413,6 @@ internal virtual void Update()
(short)MsgType.LLAPIMsg, "msg", 1);
#endif
m_MsgReader.SeekZero();
m_Connection.TransportReceive(m_MsgBuffer, receivedSize, channelId);
break;