aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorSergey Kostin <7er@inbox.ru>2019-08-02 13:21:00 +0300
committerSergey Kostin <7er@inbox.ru>2019-08-02 13:21:00 +0300
commitba7d9c38c1252e2470c1dcf6aeaca43ed08630d4 (patch)
treee2757b02034bf281a587eac69b90a392dc96f1b5 /src/main/java/org/traccar
parent5757c40f845b6470ba0e1288ce9ee1db58cf32bd (diff)
downloadtraccar-server-ba7d9c38c1252e2470c1dcf6aeaca43ed08630d4.tar.gz
traccar-server-ba7d9c38c1252e2470c1dcf6aeaca43ed08630d4.tar.bz2
traccar-server-ba7d9c38c1252e2470c1dcf6aeaca43ed08630d4.zip
commented code cleanup
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/EgtsProtocolDecoder.java11
1 files changed, 0 insertions, 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);
}
}
}