From 524c89c8c5ea8be6d989c855095cf4c58097e654 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 25 Jan 2017 18:42:10 +0100 Subject: First cut of ICE-6920 - Remove try/catch block around communicator destroy --- cpp/test/IceStorm/rep1/Publisher.cpp | 10 +--------- cpp/test/IceStorm/rep1/Sub.cpp | 10 +--------- cpp/test/IceStorm/rep1/Subscriber.cpp | 10 +--------- 3 files changed, 3 insertions(+), 27 deletions(-) (limited to 'cpp/test/IceStorm/rep1') diff --git a/cpp/test/IceStorm/rep1/Publisher.cpp b/cpp/test/IceStorm/rep1/Publisher.cpp index b90f8f7300a..d4607a3940c 100644 --- a/cpp/test/IceStorm/rep1/Publisher.cpp +++ b/cpp/test/IceStorm/rep1/Publisher.cpp @@ -135,15 +135,7 @@ main(int argc, char* argv[]) if(communicator) { - try - { - communicator->destroy(); - } - catch(const Exception& ex) - { - cerr << ex << endl; - status = EXIT_FAILURE; - } + communicator->destroy(); } return status; diff --git a/cpp/test/IceStorm/rep1/Sub.cpp b/cpp/test/IceStorm/rep1/Sub.cpp index 55423322069..ff37d271831 100644 --- a/cpp/test/IceStorm/rep1/Sub.cpp +++ b/cpp/test/IceStorm/rep1/Sub.cpp @@ -108,15 +108,7 @@ main(int argc, char* argv[]) if(communicator) { - try - { - communicator->destroy(); - } - catch(const Exception& ex) - { - cerr << ex << endl; - status = EXIT_FAILURE; - } + communicator->destroy(); } return status; diff --git a/cpp/test/IceStorm/rep1/Subscriber.cpp b/cpp/test/IceStorm/rep1/Subscriber.cpp index be1b8e0e36c..12241ede92e 100644 --- a/cpp/test/IceStorm/rep1/Subscriber.cpp +++ b/cpp/test/IceStorm/rep1/Subscriber.cpp @@ -200,15 +200,7 @@ main(int argc, char* argv[]) if(communicator) { - try - { - communicator->destroy(); - } - catch(const Exception& ex) - { - cerr << ex << endl; - status = EXIT_FAILURE; - } + communicator->destroy(); } return status; -- cgit v1.2.3