aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-27 18:43:15 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-27 18:43:15 -0700
commit08d634d984c1388c3919d7c6645506b202307dac (patch)
tree1e38159b4efd7e0dc32cdf5b58e6ff7a8d72508b /src/main/java/org/traccar/helper
parent2812c02d18ccf3ad9fadab921516cd5ff8755668 (diff)
downloadtrackermap-server-08d634d984c1388c3919d7c6645506b202307dac.tar.gz
trackermap-server-08d634d984c1388c3919d7c6645506b202307dac.tar.bz2
trackermap-server-08d634d984c1388c3919d7c6645506b202307dac.zip
Temporary disable group lookup
Diffstat (limited to 'src/main/java/org/traccar/helper')
-rw-r--r--src/main/java/org/traccar/helper/model/AttributeUtil.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/helper/model/AttributeUtil.java b/src/main/java/org/traccar/helper/model/AttributeUtil.java
index 58b922d95..b438f97dc 100644
--- a/src/main/java/org/traccar/helper/model/AttributeUtil.java
+++ b/src/main/java/org/traccar/helper/model/AttributeUtil.java
@@ -19,7 +19,6 @@ import org.traccar.config.ConfigKey;
import org.traccar.config.KeyType;
import org.traccar.config.Keys;
import org.traccar.model.Device;
-import org.traccar.model.Group;
import org.traccar.session.cache.CacheManager;
public final class AttributeUtil {
@@ -31,13 +30,6 @@ public final class AttributeUtil {
public static <T> T lookup(CacheManager cacheManager, ConfigKey<T> key, long deviceId) {
Device device = cacheManager.getObject(Device.class, deviceId);
Object result = device.getAttributes().get(key.getKey());
- long groupId = device.getGroupId();
- while (result == null && groupId > 0) {
- Group group = cacheManager.getObject(Group.class, groupId);
- if (group != null) {
- result = group.getAttributes().get(key.getKey());
- }
- }
if (result == null && key.hasType(KeyType.SERVER)) {
result = cacheManager.getServer().getAttributes().get(key.getKey());
}