From c6775537fa163275f3c2b46692d0c9d87e6aeb10 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 6 Nov 2013 19:32:43 -0800 Subject: [PATCH] Drop an unused function. This has been unused for several commits, and has just been annoying me by triggering a compiler warning. --- acre.c | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/acre.c b/acre.c index 290bb12..8c64cad 100644 --- a/acre.c +++ b/acre.c @@ -750,55 +750,6 @@ _compute_axis_ranges (acre_t *acre) cairo_restore (cr); } -static void -_acre_color_from_hsv (acre_color_t *color, - double hue, - double saturation, - double value) -{ - double f, p, q, t; - int hmod6; - - hmod6 = (int) floor (hue / 60) % 6; - f = hue / 60 - floor (hue / 60); - p = value * (1 - saturation); - q = value * (1 - f * saturation); - t = value * (1 - (1 - f) * saturation); - - switch (hmod6) { - case 0: - color->red = value; - color->green = t; - color->blue = p; - break; - case 1: - color->red = q; - color->green = value; - color->blue = p; - break; - case 2: - color->red = p; - color->green = value; - color->blue = t; - break; - case 3: - color->red = p; - color->green = q; - color->blue = value; - break; - case 4: - color->red = t; - color->green = p; - color->blue = value; - break; - case 5: - color->red = value; - color->green = p; - color->blue = q; - break; - } -} - static void _choose_colors (acre_t *acre) { -- 2.43.0