From 1e0ddfa0932a48871d0d5e74a4c58c51c38fdbad Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 3 Apr 2019 01:41:08 +0300 Subject: [PATCH] Remove is_inserted debug. GitOrigin-RevId: 64b91824e904fb3e9131ecd363eb21a493ad6b46 --- td/telegram/NotificationManager.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index f8fea7152..b43014b84 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -992,12 +992,6 @@ void NotificationManager::flush_pending_updates(int32 group_id, const char *sour // deletion, because number of notification should never exceed max_notification_group_size_, // and second addition, because we has kept the deletion - // TODO remove when the bug is fixed - string debug_updates; - for (auto &update : updates) { - debug_updates += PSTRING() << as_notification_update(update.get()); - } - // calculate last state of all notifications std::unordered_set added_notification_ids; std::unordered_set edited_notification_ids; @@ -1009,7 +1003,7 @@ void NotificationManager::flush_pending_updates(int32 group_id, const char *sour for (auto ¬ification : update_ptr->added_notifications_) { auto notification_id = notification->id_; bool is_inserted = added_notification_ids.insert(notification_id).second; - LOG_CHECK(is_inserted) << debug_updates; // there must be no additions after addition + CHECK(is_inserted); // there must be no additions after addition CHECK(edited_notification_ids.count(notification_id) == 0); // there must be no additions after edit removed_notification_ids.erase(notification_id); }