aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());
}