Remove return value from treap_delete_message.
This commit is contained in:
parent
16873cad78
commit
453a53c953
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user