Remove useless wxWebAuthChallengeCURL::Init()
This just always returned true, so simply remove it to simplify the code.
This commit is contained in:
@@ -29,8 +29,6 @@ public:
|
|||||||
wxWebAuthChallengeCURL(wxWebAuthChallenge::Source source,
|
wxWebAuthChallengeCURL(wxWebAuthChallenge::Source source,
|
||||||
wxWebRequestCURL& request);
|
wxWebRequestCURL& request);
|
||||||
|
|
||||||
bool Init();
|
|
||||||
|
|
||||||
void SetCredentials(const wxWebCredentials& cred) wxOVERRIDE;
|
void SetCredentials(const wxWebCredentials& cred) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -278,10 +278,7 @@ void wxWebRequestCURL::HandleCompletion()
|
|||||||
{
|
{
|
||||||
m_authChallenge.reset(new wxWebAuthChallengeCURL(
|
m_authChallenge.reset(new wxWebAuthChallengeCURL(
|
||||||
(status == 407) ? wxWebAuthChallenge::Source_Proxy : wxWebAuthChallenge::Source_Server, *this));
|
(status == 407) ? wxWebAuthChallenge::Source_Proxy : wxWebAuthChallenge::Source_Server, *this));
|
||||||
if ( m_authChallenge->Init() )
|
SetState(wxWebRequest::State_Unauthorized, m_response->GetStatusText());
|
||||||
SetState(wxWebRequest::State_Unauthorized, m_response->GetStatusText());
|
|
||||||
else
|
|
||||||
SetState(wxWebRequest::State_Failed);
|
|
||||||
}
|
}
|
||||||
else if ( CheckServerStatus() )
|
else if ( CheckServerStatus() )
|
||||||
SetState(wxWebRequest::State_Completed);
|
SetState(wxWebRequest::State_Completed);
|
||||||
@@ -337,11 +334,6 @@ wxWebAuthChallengeCURL::wxWebAuthChallengeCURL(wxWebAuthChallenge::Source source
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWebAuthChallengeCURL::Init()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxWebAuthChallengeCURL::SetCredentials(const wxWebCredentials& cred)
|
void wxWebAuthChallengeCURL::SetCredentials(const wxWebCredentials& cred)
|
||||||
{
|
{
|
||||||
const wxSecretString authStr =
|
const wxSecretString authStr =
|
||||||
|
Reference in New Issue
Block a user