diff --git a/lib/services/groups/groupRegistryMemory.js b/lib/services/groups/groupRegistryMemory.js index 0343905fc..033fed495 100644 --- a/lib/services/groups/groupRegistryMemory.js +++ b/lib/services/groups/groupRegistryMemory.js @@ -27,7 +27,6 @@ let registeredGroups = {}; const logger = require('logops'); const intoTrans = require('../common/domain').intoTrans; const errors = require('../../errors'); -const config = require('../../commonConfig'); const _ = require('underscore'); const context = { op: 'IoTAgentNGSI.InMemoryGroupRegister' diff --git a/lib/services/groups/groupService.js b/lib/services/groups/groupService.js index 72b74195b..d8e8a48bc 100644 --- a/lib/services/groups/groupService.js +++ b/lib/services/groups/groupService.js @@ -59,10 +59,6 @@ function validateGroup(group, callback) { config.getGroupRegistry().getSilently(group.resource, group.apikey, generateDuplicateHandler(innerCb)); } - function checkServiceAndSubservice(innerCb) { - config.getGroupRegistry().find(group.service, group.subservice, generateDuplicateHandler(innerCb)); - } - function checkMandatoryParams(innerCb) { if (!group.service) { innerCb(new errors.MissingConfigParams(['service']));