Remove unused code warnings

This commit is contained in:
Héctor Ramón Jiménez 2022-06-07 04:55:46 +02:00
parent 396735b682
commit 3a22faaa20
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 1 additions and 15 deletions

View file

@ -207,20 +207,6 @@ impl Danger {
}
}
fn muted(color: Color, amount: f32) -> Color {
let mut hsl = to_hsl(color);
hsl.lightness = if is_dark(color) {
let delta = amount * (1.0 - hsl.lightness).powi(5);
hsl.lightness + delta
} else {
let delta = amount * hsl.lightness.powi(5);
hsl.lightness - delta
};
from_hsl(hsl)
}
fn darken(color: Color, amount: f32) -> Color {
let mut hsl = to_hsl(color);