mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
RequestServer: Remove download progress updates that nobody used
This commit is contained in:
parent
f0fc516cf2
commit
853a75c4ab
Notes:
github-actions[bot]
2024-09-19 05:38:44 +00:00
Author: https://github.com/awesomekling
Commit: 853a75c4ab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1400
7 changed files with 0 additions and 29 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue