From f0e4c9dd215a92e4804901a32829987fcadec897 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 10 Sep 2025 02:56:56 +0200 Subject: [PATCH] chore!: Remove unused notification setters Since the creation of notifications has moved entirely to lua these setters were not being used anymore. --- automation_devices/src/ntfy.rs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/automation_devices/src/ntfy.rs b/automation_devices/src/ntfy.rs index 0dd85e5..b177a4b 100644 --- a/automation_devices/src/ntfy.rs +++ b/automation_devices/src/ntfy.rs @@ -71,31 +71,6 @@ impl Notification { } } - pub fn set_title(mut self, title: &str) -> Self { - self.title = Some(title.into()); - self - } - - pub fn set_message(mut self, message: &str) -> Self { - self.message = Some(message.into()); - self - } - - pub fn add_tag(mut self, tag: &str) -> Self { - self.tags.push(tag.into()); - self - } - - pub fn set_priority(mut self, priority: Priority) -> Self { - self.priority = Some(priority); - self - } - - pub fn add_action(mut self, action: Action) -> Self { - self.actions.push(action); - self - } - fn finalize(self, topic: &str) -> NotificationFinal { NotificationFinal { topic: topic.into(),