Commit 5c763675 authored by Jakob Schöttl's avatar Jakob Schöttl

Remove unnecessary clone

parent deacfdbf
......@@ -143,13 +143,11 @@ public class Scenario {
@Override
public Scenario clone() {
Scenario clonedScenario = null;
try {
clonedScenario = JsonConverter.cloneScenarioRunManager(this);
return JsonConverter.cloneScenarioRunManager(this);
} catch (IOException | VadereClassNotFoundException e) {
logger.error(e);
throw new RuntimeException(e);
}
return clonedScenario;
}
@Override
......
......@@ -146,7 +146,7 @@ public class VadereProject implements ScenarioFinishedListener {
}
private ScenarioRun prepareNextScenario() {
final Scenario nextScenario = scenariosLeft.remove().clone(); // TODO why clone? scenario should not be changed during a simulation run
final Scenario nextScenario = scenariosLeft.remove();
notifySingleScenarioFinishListener(nextScenario);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment