From c65b6db318da7ecbe888a0a66b85d9ffb28106f0 Mon Sep 17 00:00:00 2001 From: Bronson Date: Sat, 14 Dec 2024 14:14:59 +1030 Subject: [PATCH] remove from sender --- embassy-sync/src/priority_channel.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/embassy-sync/src/priority_channel.rs b/embassy-sync/src/priority_channel.rs index a4eda7fbc..d466a22ff 100644 --- a/embassy-sync/src/priority_channel.rs +++ b/embassy-sync/src/priority_channel.rs @@ -72,17 +72,6 @@ where self.channel.poll_ready_to_send(cx) } - /// Removes the elements from the channel that satisfy the predicate. - /// - /// See [`PriorityChannel::remove_if()`] - pub fn remove_if(&self, predicate: F) - where - F: Fn(&T) -> bool, - T: Clone, - { - self.channel.remove_if(predicate) - } - /// Returns the maximum number of elements the channel can hold. /// /// See [`PriorityChannel::capacity()`]