aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/ChannelBufferTools.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/ChannelBufferTools.java')
-rw-r--r--src/org/traccar/helper/ChannelBufferTools.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/org/traccar/helper/ChannelBufferTools.java b/src/org/traccar/helper/ChannelBufferTools.java
index 6c61287c9..db628a76b 100644
--- a/src/org/traccar/helper/ChannelBufferTools.java
+++ b/src/org/traccar/helper/ChannelBufferTools.java
@@ -50,26 +50,6 @@ public final class ChannelBufferTools {
}
/**
- * Return hex string
- */
- public static String readHexString(ChannelBuffer buf, int length) {
-
- StringBuilder result = new StringBuilder();
- Formatter formatter = new Formatter(result);
-
- for (int i = 0; i < length / 2; i++) {
- formatter.format("%02x", buf.readByte());
- }
-
- if (length % 2 != 0) {
- int b = buf.getUnsignedByte(buf.readerIndex());
- formatter.format("%01x", b >>> 4);
- }
-
- return result.toString();
- }
-
- /**
* Read BCD coded coordinate (first byte has sign bit)
*/
public static double readCoordinate(ChannelBuffer buf) {