From ece410b8fb0a0f186ed81c1a9fc8f0d4bbe0f545 Mon Sep 17 00:00:00 2001 From: Philipp Prangenberg Date: Mon, 5 Dec 2016 12:31:47 +0100 Subject: Beautification --- src/org/traccar/BaseProtocolDecoder.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') 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()); -- cgit v1.2.3