diff options
| -rw-r--r-- | embassy-sync/src/priority_channel.rs | 11 |
1 files changed, 0 insertions, 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 | |||
| 72 | self.channel.poll_ready_to_send(cx) | 72 | self.channel.poll_ready_to_send(cx) |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | /// Removes the elements from the channel that satisfy the predicate. | ||
| 76 | /// | ||
| 77 | /// See [`PriorityChannel::remove_if()`] | ||
| 78 | pub fn remove_if<F>(&self, predicate: F) | ||
| 79 | where | ||
| 80 | F: Fn(&T) -> bool, | ||
| 81 | T: Clone, | ||
| 82 | { | ||
| 83 | self.channel.remove_if(predicate) | ||
| 84 | } | ||
| 85 | |||
| 86 | /// Returns the maximum number of elements the channel can hold. | 75 | /// Returns the maximum number of elements the channel can hold. |
| 87 | /// | 76 | /// |
| 88 | /// See [`PriorityChannel::capacity()`] | 77 | /// See [`PriorityChannel::capacity()`] |
