diff --git a/src/runtime2/scheduler.rs b/src/runtime2/scheduler.rs index 94adc0ef7b05e5ab570ecf219923b309aa5799ce..e7b6bc05c059714590c04c83b649bd68f9845c18 100644 --- a/src/runtime2/scheduler.rs +++ b/src/runtime2/scheduler.rs @@ -545,19 +545,6 @@ impl ComponentCtx { return Ok(()); } - /// Removes messages in the outbox using a match - pub(crate) fn remove_messages bool>(&mut self, remove_if_fn: F) { - let mut idx = 0; - while idx < self.outbox.len() { - let should_remove = remove_if_fn(&self.outbox[idx]); - if should_remove { - self.outbox.remove(idx); - } else { - idx += 1; - } - } - } - /// Notify that component just finished a sync block. Like /// `notify_sync_start`: drop out of the `Component::Run` function. pub(crate) fn notify_sync_end(&mut self, changed_ports: &[ComponentPortChange]) {