Remove unused variable.

GitOrigin-RevId: 7afef76f151fa622ae43679ca886f0abfa452751
This commit is contained in:
levlam 2019-04-03 23:03:07 +03:00
parent d0448ff0f2
commit c2126744a2

View File

@ -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<int32> removed_notification_ids;