Skip to content

Commit

Permalink
remove clone() from http client
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Apr 6, 2020
1 parent 0e8a00d commit f633c8b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion contrib/epee/include/net/abstract_http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<login> 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<login> user, ssl_options_t ssl_options = ssl_support_t::e_ssl_support_autodetect) = 0;
virtual void set_auto_connect(bool auto_connect) = 0;
Expand Down
23 changes: 0 additions & 23 deletions contrib/epee/include/net/http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; };

Expand Down

0 comments on commit f633c8b

Please sign in to comment.