From ba7d9c38c1252e2470c1dcf6aeaca43ed08630d4 Mon Sep 17 00:00:00 2001 From: Sergey Kostin <7er@inbox.ru> Date: Fri, 2 Aug 2019 13:21:00 +0300 Subject: commented code cleanup --- src/main/java/org/traccar/protocol/EgtsProtocolDecoder.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/java/org/traccar/protocol/EgtsProtocolDecoder.java b/src/main/java/org/traccar/protocol/EgtsProtocolDecoder.java index 34e4aa137..53f3e49f9 100644 --- a/src/main/java/org/traccar/protocol/EgtsProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/EgtsProtocolDecoder.java @@ -132,14 +132,6 @@ public class EgtsProtocolDecoder extends BaseProtocolDecoder { // buf possibly contains multiple packets while (buf.readableBytes() >= 11) { -// short packetFlags = buf.getUnsignedByte(buf.readerIndex() + 2); -// if (BitUtil.check(packetFlags, 5)) { -// int pra = buf.getUnsignedShortLE(10); -// int rca = buf.getUnsignedShortLE(12); -// short ttl = buf.getUnsignedByte(14); -// LOGGER.trace("PRA:{} RCA:{} TTL: {}", pra, rca, ttl); -// } - short headerLength = buf.getUnsignedByte(buf.readerIndex() + 3); int frameDataLength = buf.getUnsignedShortLE(buf.readerIndex() + 5); int index = buf.getUnsignedShort(buf.readerIndex() + 5 + 2); @@ -192,7 +184,6 @@ public class EgtsProtocolDecoder extends BaseProtocolDecoder { while (buf.readerIndex() < recordEnd) { int type = buf.readUnsignedByte(); int end = buf.readUnsignedShortLE() + buf.readerIndex(); -// LOGGER.trace("{} {} {}", buf.readerIndex(), end, type); if (type == MSG_TERM_IDENTITY) { useOidAsDeviceId = false; @@ -299,8 +290,6 @@ public class EgtsProtocolDecoder extends BaseProtocolDecoder { } if (position.getDeviceId() != 0L) { positions.add(position); -// } else { -// LOGGER.debug("[{}] EGTS not authorized, OID: {}", channel.id(), oid); } } } -- cgit v1.2.3