aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authorPhilipp Prangenberg <philipp.prangenberg@derkurier.de>2016-12-05 12:31:47 +0100
committerPhilipp Prangenberg <philipp.prangenberg@derkurier.de>2016-12-05 12:31:47 +0100
commitece410b8fb0a0f186ed81c1a9fc8f0d4bbe0f545 (patch)
tree8bcb0d9c81134a4a05041f65f1c5f52311472200 /src/org/traccar/BaseProtocolDecoder.java
parentc710550576a3882b7ecccc47f69b5c1528fa969d (diff)
downloadtrackermap-server-ece410b8fb0a0f186ed81c1a9fc8f0d4bbe0f545.tar.gz
trackermap-server-ece410b8fb0a0f186ed81c1a9fc8f0d4bbe0f545.tar.bz2
trackermap-server-ece410b8fb0a0f186ed81c1a9fc8f0d4bbe0f545.zip
Beautification
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-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());