Delete unused MessagesManager::get_history.

This commit is contained in:
levlam 2023-07-28 13:22:52 +03:00
parent 16183df0aa
commit 2dba29669f
2 changed files with 0 additions and 9 deletions

View File

@ -23550,12 +23550,6 @@ void MessagesManager::on_get_history_finished(const PendingGetHistoryQuery &quer
}
}
void MessagesManager::get_history(DialogId dialog_id, MessageId from_message_id, int32 offset, int32 limit,
bool from_database, bool only_local, Promise<Unit> &&promise) {
get_history_impl(get_dialog(dialog_id), from_message_id, offset, limit, from_database, only_local,
std::move(promise));
}
void MessagesManager::get_history_impl(const Dialog *d, MessageId from_message_id, int32 offset, int32 limit,
bool from_database, bool only_local, Promise<Unit> &&promise) {
TRY_STATUS_PROMISE(promise, G()->close_status());

View File

@ -2243,9 +2243,6 @@ class MessagesManager final : public Actor {
void on_get_history_finished(const PendingGetHistoryQuery &query, Result<Unit> &&result);
void get_history(DialogId dialog_id, MessageId from_message_id, int32 offset, int32 limit, bool from_database,
bool only_local, Promise<Unit> &&promise);
void get_history_impl(const Dialog *d, MessageId from_message_id, int32 offset, int32 limit, bool from_database,
bool only_local, Promise<Unit> &&promise);