diff --git a/include/wx/private/webrequest_curl.h b/include/wx/private/webrequest_curl.h index 47c13f43e1..ac3e53634b 100644 --- a/include/wx/private/webrequest_curl.h +++ b/include/wx/private/webrequest_curl.h @@ -29,8 +29,6 @@ public: wxWebAuthChallengeCURL(wxWebAuthChallenge::Source source, wxWebRequestCURL& request); - bool Init(); - void SetCredentials(const wxWebCredentials& cred) wxOVERRIDE; private: diff --git a/src/common/webrequest_curl.cpp b/src/common/webrequest_curl.cpp index 71a11b7e90..3e9c7053cd 100644 --- a/src/common/webrequest_curl.cpp +++ b/src/common/webrequest_curl.cpp @@ -278,10 +278,7 @@ void wxWebRequestCURL::HandleCompletion() { m_authChallenge.reset(new wxWebAuthChallengeCURL( (status == 407) ? wxWebAuthChallenge::Source_Proxy : wxWebAuthChallenge::Source_Server, *this)); - if ( m_authChallenge->Init() ) - SetState(wxWebRequest::State_Unauthorized, m_response->GetStatusText()); - else - SetState(wxWebRequest::State_Failed); + SetState(wxWebRequest::State_Unauthorized, m_response->GetStatusText()); } else if ( CheckServerStatus() ) SetState(wxWebRequest::State_Completed); @@ -337,11 +334,6 @@ wxWebAuthChallengeCURL::wxWebAuthChallengeCURL(wxWebAuthChallenge::Source source { } -bool wxWebAuthChallengeCURL::Init() -{ - return true; -} - void wxWebAuthChallengeCURL::SetCredentials(const wxWebCredentials& cred) { const wxSecretString authStr =