Remove Color::opaque

It is not a right name and i don't think it is a so common operation
This commit is contained in:
Olivier Goffart 2023-06-02 09:57:50 +02:00 committed by Olivier Goffart
parent cb4ef70d33
commit 5599bd44e0
14 changed files with 5 additions and 167 deletions

View file

@ -2713,9 +2713,6 @@ fn compile_builtin_function_call(
BuiltinFunction::ColorTransparentize => {
format!("{}.transparentize({})", a.next().unwrap(), a.next().unwrap())
}
BuiltinFunction::ColorOpaque => {
format!("{}.opaque({})", a.next().unwrap(), a.next().unwrap())
}
BuiltinFunction::ColorMix => {
format!("{}.mix({}, {})", a.next().unwrap(), a.next().unwrap(), a.next().unwrap())
}

View file

@ -2370,11 +2370,6 @@ fn compile_builtin_function_call(
let factor = a.next().unwrap();
quote!(#x.transparentize(#factor as f32))
}
BuiltinFunction::ColorOpaque => {
let x = a.next().unwrap();
let factor = a.next().unwrap();
quote!(#x.opaque(#factor as f32))
}
BuiltinFunction::ColorMix => {
let x = a.next().unwrap();
let y = a.next().unwrap();