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

@ -19,7 +19,6 @@ bool Request::stop()
{
on_headers_received = nullptr;
on_finish = nullptr;
on_progress = nullptr;
on_certificate_requested = nullptr;
m_internal_buffered_data = nullptr;
@ -88,12 +87,6 @@ void Request::did_finish(Badge<RequestClient>, bool success, u64 total_size)
on_finish(success, total_size);
}
void Request::did_progress(Badge<RequestClient>, Optional<u64> total_size, u64 downloaded_size)
{
if (on_progress)
on_progress(total_size, downloaded_size);
}
void Request::did_receive_headers(Badge<RequestClient>, HTTP::HeaderMap const& response_headers, Optional<u32> response_code)
{
if (on_headers_received)