summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-18 03:39:44 +0200
committerarchshift <admin@archshift.com>2014-07-18 03:39:44 +0200
commit33b0a719da8ed8f76397f6003a5a9afa7079c090 (patch)
tree97b5e89c22cf80bed590d9462fda642672d5019b
parentGenerator: removed rnd definitions that are never read (diff)
downloadcuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar
cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.gz
cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.bz2
cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.lz
cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.xz
cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.tar.zst
cuberite-33b0a719da8ed8f76397f6003a5a9afa7079c090.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/ProtocolRecognizer.cpp2
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: