Skip to content

Commit

Permalink
removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Oct 9, 2024
1 parent b93721e commit 7ab3824
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,15 +571,6 @@ public List<Mapping> resolveMappingInbound(String tenant, String topic) throws R
.map(mn -> mn.getMapping()).collect(Collectors.toList());
}

// public List<Mapping> resolveMappingInbound(String tenant, String topic,
// String connectorIdent)
// throws ResolveException {
// List<Mapping> resolvedMappings = resolveMappingInbound(tenant, topic);
// resolvedMappings.removeIf(m -> !getDeploymentMapEntry(tenant,
// m.ident).contains(connectorIdent));
// return resolvedMappings;
// }

public void resetSnoop(String tenant, String id) throws Exception {
// step 1. update debug for mapping
log.info("Tenant {} - Reset snoop for mapping: {}", tenant, id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,22 +131,7 @@ public List<MappingTreeNode> resolveTopicPath(List<String> remainingLevels) thro
String msg = String.format("Sibling path mapping registered for this path: %s %s!",
this.getAbsolutePath(), remaining);
log.info(msg);

// String remaining = String.join("/", remainingLevels);
// throw new ResolveException(
// String.format("No mapping registered for this path: %s %s!",
// this.getAbsolutePath(),
// remaining));
}
// if (childNodes != null && childNodes.size() == 1) {
// results.add(childNodes.get(0).));
// } else {
// String remaining = String.join("/", remainingLevels);
// throw new ResolveException(
// String.format("No mapping registered for this path: %s %s!",
// this.getAbsolutePath(),
// remaining));
// }
}
return results;
}
Expand Down Expand Up @@ -174,21 +159,6 @@ private void addMapping(Mapping mapping, List<String> levels, int currentLevel)

// is currentLevel a known children
if (getChildNodes().containsKey(levels.get(currentLevel))) {
// if (children.size() == 1) {
// if (!children.get(0).isMappingNode()) {
// child = children.get(0);
// } else {
// throw new ResolveException(String.format(
// "Could not add mapping to tree, since at this node is already blocked by
// mappingId : %s",
// children.get(0).toString()));
// }
// } else {
// throw new ResolveException(String.format(
// "Could not add mapping to tree, multiple mappings are only allowed at the end
// of the tree. This node already contains: %s nodes",
// children.size()));
// }

// find the one node that is an inner node, so that we can descend further in
// the tree
Expand Down

0 comments on commit 7ab3824

Please sign in to comment.