aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index b0fb72225..2d6286bf8 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -29,8 +29,6 @@ import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
-import java.util.Set;
-import java.util.Iterator;
import java.sql.SQLException;
public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
@@ -207,13 +205,6 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
if (!positions.isEmpty()) {
position = (Position) positions.iterator().next();
}
- } else if (decodedMessage instanceof Map) {
- Set<Long> deviceIds = ((HashMap) decodedMessage).keySet();
- Iterator<Long> deviceIdsIterator = deviceIds.iterator();
- while (deviceIdsIterator.hasNext()) {
- Context.getConnectionManager().updateDevice(
- deviceIdsIterator.next(), Device.STATUS_ONLINE, new Date());
- }
}
}
if (position != null) {