diff --git a/td/telegram/files/FileDownloader.cpp b/td/telegram/files/FileDownloader.cpp index 1ddd27fcc..ed111a4dd 100644 --- a/td/telegram/files/FileDownloader.cpp +++ b/td/telegram/files/FileDownloader.cpp @@ -405,10 +405,6 @@ void FileDownloader::on_progress(Progress progress) { } } -FileLoader::Callback *FileDownloader::get_callback() { - return static_cast(callback_.get()); -} - Status FileDownloader::process_check_query(NetQueryPtr net_query) { has_hash_query_ = false; TRY_STATUS(check_net_query(net_query)); diff --git a/td/telegram/files/FileDownloader.h b/td/telegram/files/FileDownloader.h index ca87cd60b..e23ce2ed7 100644 --- a/td/telegram/files/FileDownloader.h +++ b/td/telegram/files/FileDownloader.h @@ -88,7 +88,6 @@ class FileDownloader final : public FileLoader { int64 streaming_offset) final TD_WARN_UNUSED_RESULT; Result process_part(Part part, NetQueryPtr net_query) final TD_WARN_UNUSED_RESULT; void on_progress(Progress progress) final; - FileLoader::Callback *get_callback() final; Status process_check_query(NetQueryPtr net_query) final; Result check_loop(int64 checked_prefix_size, int64 ready_prefix_size, bool is_ready) final; void add_hash_info(const std::vector> &hashes); diff --git a/td/telegram/files/FileLoader.h b/td/telegram/files/FileLoader.h index 0dcf94719..2ef6c0f9a 100644 --- a/td/telegram/files/FileLoader.h +++ b/td/telegram/files/FileLoader.h @@ -83,7 +83,6 @@ class FileLoader : public FileLoaderActor { int64 size{0}; }; virtual void on_progress(Progress progress) = 0; - virtual Callback *get_callback() = 0; virtual Result on_update_local_location(const LocalFileLocation &location, int64 file_size) TD_WARN_UNUSED_RESULT { return Status::Error("Unsupported"); diff --git a/td/telegram/files/FileUploader.cpp b/td/telegram/files/FileUploader.cpp index f3633ec53..ae6633e24 100644 --- a/td/telegram/files/FileUploader.cpp +++ b/td/telegram/files/FileUploader.cpp @@ -324,10 +324,6 @@ void FileUploader::on_progress(Progress progress) { } } -FileLoader::Callback *FileUploader::get_callback() { - return static_cast(callback_.get()); -} - void FileUploader::keep_fd_flag(bool keep_fd) { keep_fd_ = keep_fd; try_release_fd(); diff --git a/td/telegram/files/FileUploader.h b/td/telegram/files/FileUploader.h index 06e1fee2b..3d125d19f 100644 --- a/td/telegram/files/FileUploader.h +++ b/td/telegram/files/FileUploader.h @@ -68,7 +68,6 @@ class FileUploader final : public FileLoader { int64 streaming_offset) final TD_WARN_UNUSED_RESULT; Result process_part(Part part, NetQueryPtr net_query) final TD_WARN_UNUSED_RESULT; void on_progress(Progress progress) final; - FileLoader::Callback *get_callback() final; Result on_update_local_location(const LocalFileLocation &location, int64 file_size) final TD_WARN_UNUSED_RESULT;