Remove unused parameter of get_story_content_any_file_id.

This commit is contained in:
levlam 2024-08-03 21:59:11 +03:00
parent a0d0b66164
commit 024d21e7fd
4 changed files with 5 additions and 5 deletions

View File

@ -812,7 +812,7 @@ void BotInfoManager::do_add_bot_media_preview(unique_ptr<PendingBotMediaPreview>
auto content = pending_preview->content_.get();
auto upload_order = pending_preview->upload_order_;
FileId file_id = get_story_content_any_file_id(td_, content);
FileId file_id = get_story_content_any_file_id(content);
CHECK(file_id.is_valid());
LOG(INFO) << "Ask to upload file " << file_id << " with bad parts " << bad_parts;

View File

@ -494,7 +494,7 @@ td_api::object_ptr<td_api::StoryContent> get_story_content_object(Td *td, const
}
}
FileId get_story_content_any_file_id(const Td *td, const StoryContent *content) {
FileId get_story_content_any_file_id(const StoryContent *content) {
switch (content->get_type()) {
case StoryContentType::Photo:
return get_photo_any_file_id(static_cast<const StoryContentPhoto *>(content)->photo_);

View File

@ -66,7 +66,7 @@ unique_ptr<StoryContent> dup_story_content(Td *td, const StoryContent *content);
td_api::object_ptr<td_api::StoryContent> get_story_content_object(Td *td, const StoryContent *content);
FileId get_story_content_any_file_id(const Td *td, const StoryContent *content);
FileId get_story_content_any_file_id(const StoryContent *content);
vector<FileId> get_story_content_file_ids(const Td *td, const StoryContent *content);

View File

@ -5249,7 +5249,7 @@ void StoryManager::do_send_story(unique_ptr<PendingStory> &&pending_story, vecto
auto content = pending_story->story_->content_.get();
auto upload_order = pending_story->send_story_num_;
FileId file_id = get_story_content_any_file_id(td_, content);
FileId file_id = get_story_content_any_file_id(content);
CHECK(file_id.is_valid());
LOG(INFO) << "Ask to upload file " << file_id << " with bad parts " << bad_parts;
@ -5598,7 +5598,7 @@ void StoryManager::edit_story_cover(DialogId owner_dialog_id, StoryId story_id,
}
td_->create_handler<EditStoryCoverQuery>(std::move(promise))
->send(owner_dialog_id, story_id, main_frame_timestamp, get_story_content_any_file_id(td_, story->content_.get()),
->send(owner_dialog_id, story_id, main_frame_timestamp, get_story_content_any_file_id(story->content_.get()),
std::move(input_media));
}