RequestServer: Remove download progress updates that nobody used

This commit is contained in:
Andreas Kling 2024-09-17 15:02:34 +02:00 committed by Andreas Kling
commit 853a75c4ab
Notes: github-actions[bot] 2024-09-19 05:38:44 +00:00
7 changed files with 0 additions and 29 deletions

View file

@ -77,13 +77,6 @@ void RequestClient::request_finished(i32 request_id, bool success, u64 total_siz
m_requests.remove(request_id);
}
void RequestClient::request_progress(i32 request_id, Optional<u64> const& total_size, u64 downloaded_size)
{
if (auto request = const_cast<Request*>(m_requests.get(request_id).value_or(nullptr))) {
request->did_progress({}, total_size, downloaded_size);
}
}
void RequestClient::headers_became_available(i32 request_id, HTTP::HeaderMap const& response_headers, Optional<u32> const& status_code)
{
auto request = const_cast<Request*>(m_requests.get(request_id).value_or(nullptr));