Remove unused DownloadManager::update_file_deleted.
This commit is contained in:
parent
cc4194a406
commit
41a5e84d1c
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user