Remove a registered option by id.
(mut options: Signal<Vec<OptionState>>, id: &str)
| 122 | |
| 123 | /// Remove a registered option by id. |
| 124 | pub(crate) fn remove_option(mut options: Signal<Vec<OptionState>>, id: &str) { |
| 125 | remove_option_state(&mut options.write(), id); |
| 126 | } |
| 127 | |
| 128 | fn remove_option_state(options: &mut Vec<OptionState>, id: &str) { |
| 129 | options.retain(|option| option.id != id); |
no test coverage detected