aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 12:47:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 12:47:41 +1300
commitd938e1e4d8d54fec6aab26246b6b804d34addf66 (patch)
treea861e1320e1402f3c53db631317066d70ab61b50 /src/org/traccar/helper
parentfbcc3d200aaf25bbe1a6cf30274dd169ecaa8b40 (diff)
downloadtrackermap-server-d938e1e4d8d54fec6aab26246b6b804d34addf66.tar.gz
trackermap-server-d938e1e4d8d54fec6aab26246b6b804d34addf66.tar.bz2
trackermap-server-d938e1e4d8d54fec6aab26246b6b804d34addf66.zip
Modify Wondex frame decoder
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/ChannelBufferTools.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/org/traccar/helper/ChannelBufferTools.java b/src/org/traccar/helper/ChannelBufferTools.java
index ae6dfc830..d8d74b6ea 100644
--- a/src/org/traccar/helper/ChannelBufferTools.java
+++ b/src/org/traccar/helper/ChannelBufferTools.java
@@ -25,37 +25,6 @@ public final class ChannelBufferTools {
}
/**
- * Find string in network buffer
- */
- public static Integer find(
- ChannelBuffer buf,
- Integer start,
- Integer finish,
- String subString) {
-
- int index = start;
- boolean match;
-
- for (; index < finish; index++) {
- match = true;
-
- for (int i = 0; i < subString.length(); i++) {
- char c = (char) buf.getByte(index + i);
- if (c != subString.charAt(i)) {
- match = false;
- break;
- }
- }
-
- if (match) {
- return index;
- }
- }
-
- return null;
- }
-
- /**
* Convert hex to integer (length in hex digits)
*/
public static int readHexInteger(ChannelBuffer buf, int length) {