Skip to content

Commit 506316b

Browse files
committed
refactor: remove dead code
1 parent 673842b commit 506316b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

fed/mosaic-cell/src/main/java/org/eclipse/mosaic/fed/cell/ambassador/CellAmbassador.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,9 @@ private void process(CellularCommunicationConfiguration interaction) throws Inte
421421
} else if (registeredServers.containsKey(nodeId)) { // handle servers (nodes in Internet, w/o radio region)
422422
handleServerCellConfiguration(nodeId, cellConfiguration, interactionTime);
423423
} else {
424-
if (cellConfiguration.isEnabled()) {
425-
throw new InternalFederateException(
426-
"Cell Ambassador: Cannot activate Cell module for \"" + nodeId + "\" because the id is unknown"
427-
);
428-
} else {
429-
log.debug("Tried to deactivate the Cell module for a node with the unknown id: {}", nodeId);
430-
}
424+
throw new InternalFederateException(
425+
"Cell Ambassador: Cannot activate Cell module for \"" + nodeId + "\" because the id is unknown"
426+
);
431427
}
432428
} else {
433429
if (isVehicle) {

0 commit comments

Comments
 (0)