Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
EricChen-Lei committed Sep 8, 2023
1 parent cf70a3b commit 199b1d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,6 @@ public void finishSimulation() throws InternalFederateException {
carlaConnection.closeSocket();
}

if(carlaXmlRpcClient != null){
carlaXmlRpcClient.closeConnection();
}

if (federateExecutor != null) {
try {
federateExecutor.stopLocalFederate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ public void initialize(URL xmlRpcServerUrl)
Object[] connectionTest = new Object[]{"Connection test"};
Object result = (String)client.execute(registeredFunction, connectionTest);
isConnected = true;

if(!result.equals("Connected!"))
{
isConnected = false;
log.error("Server is not connected!");
}
}
catch (XmlRpcException x)
{
Expand Down

0 comments on commit 199b1d7

Please sign in to comment.