diff --git a/src/IO/JSON/JSONIOHandlerImpl.cpp b/src/IO/JSON/JSONIOHandlerImpl.cpp index 272478789b..152ebca189 100644 --- a/src/IO/JSON/JSONIOHandlerImpl.cpp +++ b/src/IO/JSON/JSONIOHandlerImpl.cpp @@ -57,23 +57,7 @@ JSONIOHandlerImpl::JSONIOHandlerImpl(AbstractIOHandler *handler) : AbstractIOHandlerImpl(handler) {} -JSONIOHandlerImpl::~JSONIOHandlerImpl() -{ - // we must not throw in a destructor - try - { - flush(); - } - catch (std::exception const &ex) - { - std::cerr << "[~JSONIOHandlerImpl] An error occurred: " << ex.what() - << std::endl; - } - catch (...) - { - std::cerr << "[~JSONIOHandlerImpl] An error occurred." << std::endl; - } -} +JSONIOHandlerImpl::~JSONIOHandlerImpl() = default; std::future JSONIOHandlerImpl::flush() {