From f633c8b0d5d61d68745448040a82d270a0361031 Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 6 Apr 2020 13:50:39 -0400 Subject: [PATCH] remove clone() from http client --- .../epee/include/net/abstract_http_client.h | 1 - contrib/epee/include/net/http_client.h | 23 ------------------- 2 files changed, 24 deletions(-) diff --git a/contrib/epee/include/net/abstract_http_client.h b/contrib/epee/include/net/abstract_http_client.h index c93bed0201..7b12626d63 100644 --- a/contrib/epee/include/net/abstract_http_client.h +++ b/contrib/epee/include/net/abstract_http_client.h @@ -63,7 +63,6 @@ namespace epee public: abstract_http_client() {} virtual ~abstract_http_client() {} - virtual abstract_http_client* clone() const = 0; bool set_server(const std::string& address, boost::optional user, ssl_options_t ssl_options = ssl_support_t::e_ssl_support_autodetect); virtual void set_server(std::string host, std::string port, boost::optional user, ssl_options_t ssl_options = ssl_support_t::e_ssl_support_autodetect) = 0; virtual void set_auto_connect(bool auto_connect) = 0; diff --git a/contrib/epee/include/net/http_client.h b/contrib/epee/include/net/http_client.h index e7a966fa51..d329b8cf22 100644 --- a/contrib/epee/include/net/http_client.h +++ b/contrib/epee/include/net/http_client.h @@ -168,29 +168,6 @@ namespace net_utils , m_lock() {} - explicit http_simple_client_template(const http_simple_client_template& other) - : i_target_handler(), abstract_http_client() - , m_net_client() - , m_host_buff(other.m_host_buff) - , m_port(other.m_port) - , m_auth(other.m_auth) - , m_header_cache(other.m_header_cache) - , m_response_info(other.m_response_info) - , m_len_in_summary(other.m_len_in_summary) - , m_len_in_remain(other.m_len_in_remain) - , m_pcontent_encoding_handler(other.m_pcontent_encoding_handler) - , m_state(other.m_state) - , m_chunked_state(other.m_chunked_state) - , m_chunked_cache(other.m_chunked_cache) - , m_auto_connect(other.m_auto_connect) - , m_lock(other.m_lock) - {} - - abstract_http_client* clone() const override - { - return new http_simple_client_template(*this); - } - const std::string &get_host() const { return m_host_buff; }; const std::string &get_port() const { return m_port; };