aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index 5b5cc3146..9e04fa5cd 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -41,12 +41,6 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
device.setCategory(Context.getConfig().getString("database.registerUnknown.defaultCategory", "default"));
if(!defaultGroupName.equals("NOTDEFINED")){
-// for (Group g:Context.getDeviceManager().getAllGroups()) {
-// if(g.getName().equalsIgnoreCase(defaultGroupName)){
-// device.setGroupId(g.getGroupId());
-// break;
-// }
-// }
Group defaultGroup = Context.getDeviceManager().getGroupByName(defaultGroupName);
if(defaultGroup != null)
device.setGroupId(defaultGroup.getId());