Remove unused DownloadManager::update_file_deleted.

This commit is contained in:
levlam 2022-09-05 18:02:41 +03:00
parent cc4194a406
commit 41a5e84d1c
2 changed files with 0 additions and 14 deletions

View File

@ -301,19 +301,6 @@ class DownloadManagerImpl final : public DownloadManager {
}
}
void update_file_deleted(FileId internal_file_id) final {
if (!callback_ || !is_database_loaded_) {
return;
}
auto r_file_info_ptr = get_file_info_by_internal(internal_file_id);
if (r_file_info_ptr.is_error()) {
return;
}
auto &file_info = *r_file_info_ptr.ok();
remove_file_impl(file_info.file_id, {}, false, "update_file_deleted");
}
void update_file_viewed(FileId file_id, FileSourceId file_source_id) final {
if (unviewed_completed_download_ids_.empty() || !callback_ || !is_database_loaded_) {
return;

View File

@ -106,7 +106,6 @@ class DownloadManager : public Actor {
virtual void remove_file_if_finished(FileId file_id) = 0;
virtual void update_file_download_state(FileId internal_file_id, int64 downloaded_size, int64 size,
int64 expected_size, bool is_paused) = 0;
virtual void update_file_deleted(FileId internal_file_id) = 0;
virtual void update_file_viewed(FileId file_id, FileSourceId file_source_id) = 0;
};