Remove unimplemented UploadCallback::on_progress.
This commit is contained in:
parent
b42c74f561
commit
70050704d2
@ -4544,8 +4544,6 @@ class ResolveUsernameQuery final : public Td::ResultHandler {
|
||||
|
||||
class MessagesManager::UploadMediaCallback final : public FileManager::UploadCallback {
|
||||
public:
|
||||
void on_progress(FileId file_id) final {
|
||||
}
|
||||
void on_upload_ok(FileId file_id, tl_object_ptr<telegram_api::InputFile> input_file) final {
|
||||
send_closure_later(G()->messages_manager(), &MessagesManager::on_upload_media, file_id, std::move(input_file),
|
||||
nullptr);
|
||||
|
@ -3651,9 +3651,6 @@ void Td::close_impl(bool destroy_flag) {
|
||||
|
||||
class Td::DownloadFileCallback final : public FileManager::DownloadCallback {
|
||||
public:
|
||||
void on_progress(FileId file_id) final {
|
||||
}
|
||||
|
||||
void on_download_ok(FileId file_id) final {
|
||||
send_closure(G()->td(), &Td::on_file_download_finished, file_id);
|
||||
}
|
||||
@ -3665,9 +3662,6 @@ class Td::DownloadFileCallback final : public FileManager::DownloadCallback {
|
||||
|
||||
class Td::UploadFileCallback final : public FileManager::UploadCallback {
|
||||
public:
|
||||
void on_progress(FileId file_id) final {
|
||||
}
|
||||
|
||||
void on_upload_ok(FileId file_id, tl_object_ptr<telegram_api::InputFile> input_file) final {
|
||||
// cancel file upload of the file to allow next upload with the same file to succeed
|
||||
send_closure(G()->file_manager(), &FileManager::cancel_upload, file_id);
|
||||
|
@ -371,9 +371,6 @@ class FileManager final : public FileLoadManager::Callback {
|
||||
UploadCallback &operator=(const UploadCallback &) = delete;
|
||||
virtual ~UploadCallback() = default;
|
||||
|
||||
virtual void on_progress(FileId file_id) {
|
||||
}
|
||||
|
||||
// After on_upload_ok all uploads of this file will be paused till merge, delete_partial_remote_location or
|
||||
// explicit upload request with the same file_id.
|
||||
// Also upload may be resumed after some other merges.
|
||||
|
Loading…
Reference in New Issue
Block a user