Get rid of public wxWebSession::GetHeaders()

This is unnecessary, it can be protected and we can initialize
wxWebRequest::m_headers directly in its ctor instead of using this
function (which also simplifies code and makes it impossible to forget
to do this).
This commit is contained in:
Vadim Zeitlin
2020-12-13 03:09:55 +01:00
parent 7b7f9fa6c0
commit 59bc7e59d7
5 changed files with 18 additions and 13 deletions

View File

@@ -152,7 +152,6 @@ wxWebRequestWinHTTP::wxWebRequestWinHTTP(int id, wxWebSessionWinHTTP& session, c
m_request(NULL),
m_dataWritten(0)
{
m_headers = session.GetHeaders();
}
wxWebRequestWinHTTP::~wxWebRequestWinHTTP()