libgimpcolor: Remove conditions which are always true

This commit is contained in:
Mukund Sivaraman 2011-10-01 13:13:49 +05:30
parent f342b50483
commit 890b9abf94
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ gimp_rgb_to_hsv (const GimpRGB *rgb,
{
hsv->h = 2.0 + (rgb->b - rgb->r) / delta;
}
else if (rgb->b == max)
else
{
hsv->h = 4.0 + (rgb->r - rgb->g) / delta;
}
@ -233,7 +233,7 @@ gimp_rgb_to_hsl (const GimpRGB *rgb,
{
hsl->h = 2.0 + (rgb->b - rgb->r) / delta;
}
else if (rgb->b == max)
else
{
hsl->h = 4.0 + (rgb->r - rgb->g) / delta;
}
@ -1005,7 +1005,7 @@ gimp_rgb_to_hsv4 (const guchar *rgb,
h = (green - blue) / delta;
else if (green == max)
h = 2 + (blue - red) / delta;
else if (blue == max)
else
h = 4 + (red - green) / delta;
h /= 6.0;