From bb2f103a0b20bafd00db4881eaa45b74228f06b3 Mon Sep 17 00:00:00 2001 From: Brian May Date: Wed, 28 Aug 2024 19:35:44 +1000 Subject: [PATCH] Remove unused try_send function --- src/output/mod.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/output/mod.rs b/src/output/mod.rs index 24711ea..b0407e6 100644 --- a/src/output/mod.rs +++ b/src/output/mod.rs @@ -63,15 +63,6 @@ impl MultiOutput { } } - pub fn try_send(&self, msg: Message) { - let msg = Arc::new(msg); - for tx in &self.tx { - tx.try_send(msg.clone()).unwrap_or_else(|err| { - print!("Cannot send message to output pipe: {err}"); - }); - } - } - pub async fn send_log(&self, entry: LogEntry) { self.send(Message::Log(entry)).await; }