mirror of
https://gitlab.com/schmiddi-on-mobile/flare.git
synced 2026-10-30 15:37:46 -04:00
chores(rust): Remove unused functions
This commit is contained in:
1 parent
a0337586c8
commit
40b3a65fc4
2 files changed
-15
No files matched your search
@@ -51,13 +51,6 @@ impl DisplayMessage {
|
||||
|
||||
pub trait DisplayMessageExt: 'static {
|
||||
fn textual_description(&self) -> Option<String>;
|
||||
|
||||
fn send_notification(&self)
|
||||
where
|
||||
Self: IsA<DisplayMessage>,
|
||||
{
|
||||
self.upcast_ref::<DisplayMessage>().send_notification()
|
||||
}
|
||||
}
|
||||
|
||||
impl<O: IsA<DisplayMessage>> DisplayMessageExt for O {
|
||||
|
||||
@@ -12,10 +12,6 @@ pub trait TimelineItemExt: 'static + std::marker::Sized + glib::prelude::ObjectE
|
||||
/// Set if this item should show the timestamp based on the next item.
|
||||
fn update_show_timestamp(&self, next: Option<&TimelineItem>);
|
||||
|
||||
fn datetime(&self) -> Option<glib::DateTime> {
|
||||
self.property("datetime")
|
||||
}
|
||||
|
||||
/// Days since 01.01.1970
|
||||
fn day_timestamp(&self) -> u64 {
|
||||
self.timestamp() / (1000 * 60 * 60 * 24)
|
||||
@@ -26,10 +22,6 @@ pub trait TimelineItemExt: 'static + std::marker::Sized + glib::prelude::ObjectE
|
||||
self.property("timestamp")
|
||||
}
|
||||
|
||||
fn set_timestamp(&self, value: u64) {
|
||||
self.set_property("timestamp", value)
|
||||
}
|
||||
|
||||
fn show_header(&self) -> bool {
|
||||
self.property("show-header")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user