1
0

ProtocolRecognizer.cpp: removed unused NumBytesRead

This commit is contained in:
archshift 2014-07-17 18:39:44 -07:00
parent 32b25ec7f7
commit 33b0a719da

View File

@ -953,7 +953,6 @@ bool cProtocolRecognizer::TryRecognizeLengthlessProtocol(void)
bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRemaining) bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRemaining)
{ {
UInt32 PacketType; UInt32 PacketType;
UInt32 NumBytesRead = (UInt32)m_Buffer.GetReadableSpace();
if (!m_Buffer.ReadVarInt(PacketType)) if (!m_Buffer.ReadVarInt(PacketType))
{ {
return false; return false;
@ -972,7 +971,6 @@ bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRema
{ {
return false; return false;
} }
NumBytesRead -= (UInt32)m_Buffer.GetReadableSpace();
switch (ProtocolVersion) switch (ProtocolVersion)
{ {
case PROTO_VERSION_1_7_2: case PROTO_VERSION_1_7_2: