diff options
author | Nikolay Vlahovski <nvlahovski@gmail.com> | 2023-05-17 11:13:43 +0300 |
---|---|---|
committer | Nikolay Vlahovski <nvlahovski@gmail.com> | 2023-05-17 11:13:43 +0300 |
commit | 9fa4b44281e96ab56f3a0d27745d89265ea417fd (patch) | |
tree | 0ff84f10f2dcc3f8c790ed19c61decd7826375f6 /src | |
parent | 7e403cf979d3c01acb5b3dfe0ee37dfa83cba4ff (diff) | |
download | trackermap-server-9fa4b44281e96ab56f3a0d27745d89265ea417fd.tar.gz trackermap-server-9fa4b44281e96ab56f3a0d27745d89265ea417fd.tar.bz2 trackermap-server-9fa4b44281e96ab56f3a0d27745d89265ea417fd.zip |
Remove sendResponse function from TranSyncProtocolDecoder.java
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/TranSyncProtocolDecoder.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/main/java/org/traccar/protocol/TranSyncProtocolDecoder.java b/src/main/java/org/traccar/protocol/TranSyncProtocolDecoder.java index bb8c9bbf9..e9247ddf8 100644 --- a/src/main/java/org/traccar/protocol/TranSyncProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TranSyncProtocolDecoder.java @@ -108,18 +108,6 @@ public class TranSyncProtocolDecoder extends BaseProtocolDecoder { } } - private void sendResponse(Channel channel) { - if (channel != null) { - ByteBuf response = Unpooled.buffer(5); - response.writeByte(22); - response.writeByte(1); - response.writeShort(response.capacity()); // length - response.writeByte(4); - - channel.writeAndFlush(new NetworkMessage(response, channel.remoteAddress())); - } - } - @Override protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; @@ -203,7 +191,6 @@ public class TranSyncProtocolDecoder extends BaseProtocolDecoder { } } } - sendResponse(channel); return position; } } |