chore(appearance): Remove unused function

This function used to reset the color picker but was replaced and is not
needed anymore.
This commit is contained in:
8roken 2025-06-27 19:26:31 -04:00 committed by Michael Murphy
parent 907bddd46b
commit 9d296353e3

View file

@ -465,22 +465,3 @@ impl Content {
.map(crate::pages::Message::Appearance)
}
}
fn reset_color_control(
field: &mut ColorPickerModel,
manager: &theme_manager::Manager,
context_view: ContextView,
) -> Vec<Task<app::Message>> {
let mut tasks = Vec::new();
let color = manager.get_color(&context_view).map(Srgb::from);
if let Some(c) = color {
tasks.push(field.update(ColorPickerUpdate::ActiveColor(Hsv::from_color(c))));
tasks.push(field.update(ColorPickerUpdate::AppliedColor));
} else {
tasks.push(field.update(ColorPickerUpdate::Reset));
}
tasks
}