aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/EelinkProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 13:58:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 13:58:50 +1300
commit7a80a011789dced9db2c6cdc65cb327d87a6d2b1 (patch)
tree5a3c4dd7ef7976fd4ed5add55afebb7e412da8e8 /src/org/traccar/protocol/EelinkProtocolDecoder.java
parentfcfd745a4e234c2f8c0364bbc462460bc20da8e2 (diff)
downloadtrackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.tar.gz
trackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.tar.bz2
trackermap-server-7a80a011789dced9db2c6cdc65cb327d87a6d2b1.zip
Fix some PMD reported bugs
Diffstat (limited to 'src/org/traccar/protocol/EelinkProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/EelinkProtocolDecoder.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java
index 08612dafd..52f6a7f63 100644
--- a/src/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -32,18 +32,6 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
super(protocol);
}
- private String readImei(ChannelBuffer buf) {
- int b = buf.readUnsignedByte();
- StringBuilder imei = new StringBuilder();
- imei.append(b & 0x0F);
- for (int i = 0; i < 7; i++) {
- b = buf.readUnsignedByte();
- imei.append((b & 0xF0) >> 4);
- imei.append(b & 0x0F);
- }
- return imei.toString();
- }
-
private static final int MSG_LOGIN = 0x01;
private static final int MSG_GPS = 0x02;
private static final int MSG_HEARTBEAT = 0x03;