diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-31 23:51:43 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-31 23:51:43 -0800 |
commit | a89f81445f69ae3e1926c65f65e947ba9fc98455 (patch) | |
tree | da144b625221d2907b8b5c73a942cfc13729e1e1 /src/main/java/org/traccar | |
parent | 99c9664cc6502f513200e386781fa3be2a3215fb (diff) | |
download | trackermap-server-a89f81445f69ae3e1926c65f65e947ba9fc98455.tar.gz trackermap-server-a89f81445f69ae3e1926c65f65e947ba9fc98455.tar.bz2 trackermap-server-a89f81445f69ae3e1926c65f65e947ba9fc98455.zip |
Remove unused code
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/Main.java | 2 | ||||
-rw-r--r-- | src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java index 67b50a35d..63e5c1f90 100644 --- a/src/main/java/org/traccar/Main.java +++ b/src/main/java/org/traccar/Main.java @@ -34,8 +34,6 @@ public final class Main { private static final Logger LOGGER = LoggerFactory.getLogger(Main.class); - private static final long CLEAN_PERIOD = 24 * 60 * 60 * 1000; - private static Injector injector; public static Injector getInjector() { diff --git a/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java index 7b0eed943..3ad70bdca 100644 --- a/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java @@ -128,7 +128,7 @@ public class HuaShengProtocolDecoder extends BaseProtocolDecoder { } else if (type == MSG_UPFAULT) { - return decodeFaultCodes(channel, remoteAddress, buf, index); + return decodeFaultCodes(channel, remoteAddress, buf); } else if (type == MSG_POSITION) { @@ -140,7 +140,7 @@ public class HuaShengProtocolDecoder extends BaseProtocolDecoder { } private Position decodeFaultCodes( - Channel channel, SocketAddress remoteAddress, ByteBuf buf, int index) { + Channel channel, SocketAddress remoteAddress, ByteBuf buf) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession == null) { |