aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/RemoteAddressHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-12 13:05:10 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-12 13:05:10 +1200
commitf304021d16e433b261226a8293f03e7de30a08a4 (patch)
treebb908a0e437a4d80b7e5043346545d02e8b235af /src/org/traccar/RemoteAddressHandler.java
parent639b427eba5738534c10f591e285d707e8b060e5 (diff)
downloadtrackermap-server-f304021d16e433b261226a8293f03e7de30a08a4.tar.gz
trackermap-server-f304021d16e433b261226a8293f03e7de30a08a4.tar.bz2
trackermap-server-f304021d16e433b261226a8293f03e7de30a08a4.zip
Re-factor all channel handlers
Diffstat (limited to 'src/org/traccar/RemoteAddressHandler.java')
-rw-r--r--src/org/traccar/RemoteAddressHandler.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/org/traccar/RemoteAddressHandler.java b/src/org/traccar/RemoteAddressHandler.java
index d9522020d..a26a1aff2 100644
--- a/src/org/traccar/RemoteAddressHandler.java
+++ b/src/org/traccar/RemoteAddressHandler.java
@@ -17,7 +17,6 @@ package org.traccar;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
-import java.util.List;
import org.jboss.netty.channel.Channel;
import org.traccar.model.Event;
import org.traccar.model.Position;
@@ -34,11 +33,6 @@ public class RemoteAddressHandler extends ExtendedObjectDecoder {
if (msg instanceof Position) {
Position position = (Position) msg;
position.set(Event.KEY_IP, hostAddress);
- } else if (msg instanceof List) {
- List<Position> positions = (List<Position>) msg;
- for (Position position : positions) {
- position.set(Event.KEY_IP, hostAddress);
- }
}
return msg;