Remove return value from treap_delete_message.

This commit is contained in:
levlam 2023-05-02 17:18:05 +03:00
parent 16873cad78
commit 453a53c953
2 changed files with 2 additions and 4 deletions

View File

@ -34268,7 +34268,7 @@ MessagesManager::OrderedMessage *MessagesManager::treap_insert_message(unique_pt
return v->get();
}
unique_ptr<MessagesManager::OrderedMessage> MessagesManager::treap_delete_message(unique_ptr<OrderedMessage> *v) {
void MessagesManager::treap_delete_message(unique_ptr<OrderedMessage> *v) {
unique_ptr<OrderedMessage> result = std::move(*v);
CHECK(result != nullptr);
unique_ptr<OrderedMessage> left = std::move(result->left);
@ -34286,8 +34286,6 @@ unique_ptr<MessagesManager::OrderedMessage> MessagesManager::treap_delete_messag
}
}
CHECK(*v == nullptr);
return result;
}
MessagesManager::Message *MessagesManager::get_message(Dialog *d, MessageId message_id) {

View File

@ -2871,7 +2871,7 @@ class MessagesManager final : public Actor {
static OrderedMessage *treap_insert_message(unique_ptr<OrderedMessage> *v, unique_ptr<OrderedMessage> message);
static unique_ptr<OrderedMessage> treap_delete_message(unique_ptr<OrderedMessage> *v);
static void treap_delete_message(unique_ptr<OrderedMessage> *v);
static Message *get_message(Dialog *d, MessageId message_id);
static const Message *get_message(const Dialog *d, MessageId message_id);