From 61699ef56eb3091341c5f5a38189e12a11280e3e Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 5 Oct 2011 11:01:48 -0400 Subject: eel: remove unused eel_gdk_rgba_is_dark() --- eel/eel-gdk-extensions.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'eel/eel-gdk-extensions.c') diff --git a/eel/eel-gdk-extensions.c b/eel/eel-gdk-extensions.c index 161aebe53..4c9c21f96 100644 --- a/eel/eel-gdk-extensions.c +++ b/eel/eel-gdk-extensions.c @@ -35,23 +35,6 @@ #include #include -/** - * eel_gdk_rgba_is_dark: - * - * Return true if the given color is `dark' - */ -gboolean -eel_gdk_rgba_is_dark (const GdkRGBA *color) -{ - int intensity; - - intensity = ((((int) (color->red) >> 8) * 77) - + (((int) (color->green) >> 8) * 150) - + (((int) (color->blue) >> 8) * 28)) >> 8; - - return intensity < 128; -} - EelGdkGeometryFlags eel_gdk_parse_geometry (const char *string, int *x_return, int *y_return, guint *width_return, guint *height_return) -- cgit v1.2.1