diff --git a/Framework/Kernel/inc/MantidKernel/ErrorReporter.h b/Framework/Kernel/inc/MantidKernel/ErrorReporter.h index 0ffe23a4d54ba24b8d82eacb327c7c983d9ab5a1..bd399af95351d5b5fdbc4bd7cf2d5215d883cf22 100644 --- a/Framework/Kernel/inc/MantidKernel/ErrorReporter.h +++ b/Framework/Kernel/inc/MantidKernel/ErrorReporter.h @@ -53,12 +53,8 @@ protected: virtual int sendReport(const std::string &message, const std::string &url); private: - /// Asynchronous method for sending post request - int sendErrorAsyncImpl(const std::string &message); const std::string m_application; - /// Async method for sending error report - Poco::ActiveMethod<int, std::string, ErrorReporter> m_errorActiveMethod; /// Stores the exit code of mantid if it has crashed const std::string m_exitCode; /// The time mantid has been running diff --git a/Framework/Kernel/src/ErrorReporter.cpp b/Framework/Kernel/src/ErrorReporter.cpp index 229192ba48feae513a03e1a2ab4d4f5b41fae29f..2027c0b5a9ffda75be04b9abed7fe6a6be3dedb5 100644 --- a/Framework/Kernel/src/ErrorReporter.cpp +++ b/Framework/Kernel/src/ErrorReporter.cpp @@ -29,7 +29,6 @@ ErrorReporter::ErrorReporter(std::string application, Types::Core::time_duration upTime, std::string exitCode, bool share) : m_application(application), - m_errorActiveMethod(this, &ErrorReporter::sendErrorAsyncImpl), m_exitCode(exitCode), m_upTime(upTime), m_share(share), m_name(""), m_email("") { int retval = Mantid::Kernel::ConfigService::Instance().getValue( @@ -46,7 +45,6 @@ ErrorReporter::ErrorReporter(std::string application, std::string exitCode, bool share, std::string name, std::string email) : m_application(application), - m_errorActiveMethod(this, &ErrorReporter::sendErrorAsyncImpl), m_exitCode(exitCode), m_upTime(upTime), m_share(share), m_name(name), m_email(email) { int retval = Mantid::Kernel::ConfigService::Instance().getValue( @@ -119,10 +117,6 @@ std::string ErrorReporter::generateErrorMessage() { return writer.write(message); } -int ErrorReporter::sendErrorAsyncImpl(const std::string &message) { - return this->sendReport(message, m_url); -} - /** Submits a post request to the specified url with the message as the body @param message : String containg json formatted error message @param url : The url to send the post request to