From f704720b2a3726b07a40356c51a5fe3ddd24c0ba Mon Sep 17 00:00:00 2001
From: Matthew Andrew <matthew.andrew@stfc.ac.uk>
Date: Fri, 23 Feb 2018 11:37:16 +0000
Subject: [PATCH] Re #21709 Removed unused async methods

---
 Framework/Kernel/inc/MantidKernel/ErrorReporter.h | 4 ----
 Framework/Kernel/src/ErrorReporter.cpp            | 6 ------
 2 files changed, 10 deletions(-)

diff --git a/Framework/Kernel/inc/MantidKernel/ErrorReporter.h b/Framework/Kernel/inc/MantidKernel/ErrorReporter.h
index 0ffe23a4d54..bd399af9535 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 229192ba48f..2027c0b5a9f 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
-- 
GitLab