aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CellocatorProtocolDecoder.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/CellocatorProtocolDecoder.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/CellocatorProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/CellocatorProtocolDecoder.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/org/traccar/protocol/CellocatorProtocolDecoder.java b/src/org/traccar/protocol/CellocatorProtocolDecoder.java
index 7afe90913..45505a7c7 100644
--- a/src/org/traccar/protocol/CellocatorProtocolDecoder.java
+++ b/src/org/traccar/protocol/CellocatorProtocolDecoder.java
@@ -15,14 +15,12 @@
*/
package org.traccar.protocol;
-import java.nio.ByteOrder;
import java.net.SocketAddress;
+import java.nio.ByteOrder;
import java.util.Calendar;
import java.util.TimeZone;
-
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
-
import org.jboss.netty.channel.Channel;
import org.traccar.BaseProtocolDecoder;
import org.traccar.helper.UnitsConverter;
@@ -35,18 +33,6 @@ public class CellocatorProtocolDecoder 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();
- }
-
static final int MSG_CLIENT_STATUS = 0;
static final int MSG_CLIENT_PROGRAMMING = 3;
static final int MSG_CLIENT_SERIAL_LOG = 7;