Remove wxWebRequestImpl::IsActiveState()

Semantics of this function wasn't really clear and it was used only
once, so just inline it at the point of use and define better what
happens for various states there.

Also use a switch rather than testing for individual states to make sure
this code is updated if another state is added in the future.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-01-16 14:44:45 +01:00
parent a52f353321
commit 3107a17353
2 changed files with 17 additions and 9 deletions

View File

@@ -122,8 +122,6 @@ protected:
// for the response status.
void SetFinalStateFromStatus();
static bool IsActiveState(wxWebRequest::State state);
private:
// Called from public Cancel() at most once per object.
virtual void DoCancel() = 0;