diff options
author | Mattes D <github@xoft.cz> | 2014-07-18 08:09:32 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-07-18 08:09:32 +0200 |
commit | 79a5c90c0219695512ed9019712ffabe52dbb8a8 (patch) | |
tree | 97b5e89c22cf80bed590d9462fda642672d5019b /src | |
parent | Generator: removed rnd definitions that are never read (diff) | |
parent | ProtocolRecognizer.cpp: removed unused NumBytesRead (diff) | |
download | cuberite-79a5c90c0219695512ed9019712ffabe52dbb8a8.tar cuberite-79a5c90c0219695512ed9019712ffabe52dbb8a8.tar.gz cuberite-79a5c90c0219695512ed9019712ffabe52dbb8a8.tar.bz2 cuberite-79a5c90c0219695512ed9019712ffabe52dbb8a8.tar.lz cuberite-79a5c90c0219695512ed9019712ffabe52dbb8a8.tar.xz cuberite-79a5c90c0219695512ed9019712ffabe52dbb8a8.tar.zst cuberite-79a5c90c0219695512ed9019712ffabe52dbb8a8.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp index d3aae65fe..3991b84de 100644 --- a/src/Protocol/ProtocolRecognizer.cpp +++ b/src/Protocol/ProtocolRecognizer.cpp @@ -953,7 +953,6 @@ bool cProtocolRecognizer::TryRecognizeLengthlessProtocol(void) bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRemaining) { UInt32 PacketType; - UInt32 NumBytesRead = (UInt32)m_Buffer.GetReadableSpace(); if (!m_Buffer.ReadVarInt(PacketType)) { return false; @@ -972,7 +971,6 @@ bool cProtocolRecognizer::TryRecognizeLengthedProtocol(UInt32 a_PacketLengthRema { return false; } - NumBytesRead -= (UInt32)m_Buffer.GetReadableSpace(); switch (ProtocolVersion) { case PROTO_VERSION_1_7_2: |