From c2126744a2bf5de4fb1b9bcf983b05d81f388557 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 3 Apr 2019 23:03:07 +0300 Subject: [PATCH] Remove unused variable. GitOrigin-RevId: 7afef76f151fa622ae43679ca886f0abfa452751 --- td/telegram/NotificationManager.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index cc4428894..aa2fb4553 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -2037,15 +2037,12 @@ void NotificationManager::remove_temporary_notifications(NotificationGroupId gro return; } - bool is_total_count_changed = false; if (group.total_count < removed_notification_count) { LOG(ERROR) << "Total notification count became negative in " << group_id << " after removing " << removed_notification_count << " temporary notificaitions"; - is_total_count_changed = group.total_count != 0; group.total_count = 0; } else { group.total_count -= removed_notification_count; - is_total_count_changed = true; } vector removed_notification_ids;