chore: Remove a bunch of unused structs (#16139)
Found by beta clippy. Release Notes: - N/A
This commit is contained in:
parent
f956257638
commit
68ae347077
3 changed files with 0 additions and 30 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue