chore: Remove a bunch of unused structs (#16139)

Found by beta clippy.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-08-13 01:43:19 +02:00 committed by GitHub
parent f956257638
commit 68ae347077
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 30 deletions

View file

@ -68,9 +68,6 @@ pub struct NotificationSummary {
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)]
struct Count(usize);
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)]
struct UnreadCount(usize);
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)]
struct NotificationId(u64);
@ -491,12 +488,6 @@ impl<'a> sum_tree::Dimension<'a, NotificationSummary> for Count {
}
}
impl<'a> sum_tree::Dimension<'a, NotificationSummary> for UnreadCount {
fn add_summary(&mut self, summary: &NotificationSummary, _: &()) {
self.0 += summary.unread_count;
}
}
struct AddNotificationsOptions {
is_new: bool,
clear_old: bool,