aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/ChannelBufferTools.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-20 14:36:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-20 14:36:15 +1300
commit9debdb83c7a00633b6ae751affea787afbd09729 (patch)
tree159ea142c82938f5c2094fe8de4473c2b3e332b5 /src/org/traccar/helper/ChannelBufferTools.java
parent06b5113f3d98a44530c2ade6810bc75092fccc31 (diff)
downloadtrackermap-server-9debdb83c7a00633b6ae751affea787afbd09729.tar.gz
trackermap-server-9debdb83c7a00633b6ae751affea787afbd09729.tar.bz2
trackermap-server-9debdb83c7a00633b6ae751affea787afbd09729.zip
Refactor GT06 protocol decoder
Diffstat (limited to 'src/org/traccar/helper/ChannelBufferTools.java')
-rw-r--r--src/org/traccar/helper/ChannelBufferTools.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/org/traccar/helper/ChannelBufferTools.java b/src/org/traccar/helper/ChannelBufferTools.java
index dd63a0c86..5117f1779 100644
--- a/src/org/traccar/helper/ChannelBufferTools.java
+++ b/src/org/traccar/helper/ChannelBufferTools.java
@@ -124,21 +124,6 @@ public final class ChannelBufferTools {
return value;
}
-
- /**
- * Convert integer array to byte array
- */
- public static byte[] convertArray(int[] in) {
- byte[] out = new byte[in.length];
- for (int i = 0; i < in.length; i++) {
- out[i] = (byte) in[i];
- }
- return out;
- }
-
- /**
- * Convert hex string to byte array
- */
public static byte[] convertHexString(String in) {
int count = in.length() / 2;
byte[] out = new byte[count];
@@ -148,9 +133,6 @@ public final class ChannelBufferTools {
return out;
}
- /**
- * Convert byte array to hex string
- */
public static String convertByteArray(byte[] in) {
StringBuilder out = new StringBuilder();
Formatter formatter = new Formatter(out);