Remove unused variable.
GitOrigin-RevId: 7afef76f151fa622ae43679ca886f0abfa452751
This commit is contained in:
parent
d0448ff0f2
commit
c2126744a2
|
@ -2037,15 +2037,12 @@ void NotificationManager::remove_temporary_notifications(NotificationGroupId gro
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_total_count_changed = false;
|
|
||||||
if (group.total_count < removed_notification_count) {
|
if (group.total_count < removed_notification_count) {
|
||||||
LOG(ERROR) << "Total notification count became negative in " << group_id << " after removing "
|
LOG(ERROR) << "Total notification count became negative in " << group_id << " after removing "
|
||||||
<< removed_notification_count << " temporary notificaitions";
|
<< removed_notification_count << " temporary notificaitions";
|
||||||
is_total_count_changed = group.total_count != 0;
|
|
||||||
group.total_count = 0;
|
group.total_count = 0;
|
||||||
} else {
|
} else {
|
||||||
group.total_count -= removed_notification_count;
|
group.total_count -= removed_notification_count;
|
||||||
is_total_count_changed = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<int32> removed_notification_ids;
|
vector<int32> removed_notification_ids;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user