[nautilus] eel: remove unused eel_gdk_rgba_is_dark()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel: remove unused eel_gdk_rgba_is_dark()
- Date: Wed, 5 Oct 2011 16:32:31 +0000 (UTC)
commit 61699ef56eb3091341c5f5a38189e12a11280e3e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Oct 5 11:01:48 2011 -0400
eel: remove unused eel_gdk_rgba_is_dark()
eel/eel-gdk-extensions.c | 17 -----------------
eel/eel-gdk-extensions.h | 2 --
2 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/eel/eel-gdk-extensions.c b/eel/eel-gdk-extensions.c
index 161aebe..4c9c21f 100644
--- a/eel/eel-gdk-extensions.c
+++ b/eel/eel-gdk-extensions.c
@@ -35,23 +35,6 @@
#include <stdlib.h>
#include <pango/pango.h>
-/**
- * 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)
diff --git a/eel/eel-gdk-extensions.h b/eel/eel-gdk-extensions.h
index 947f1e1..a4d1424 100644
--- a/eel/eel-gdk-extensions.h
+++ b/eel/eel-gdk-extensions.h
@@ -40,8 +40,6 @@ typedef enum {
EEL_GDK_Y_NEGATIVE = 0x20
} EelGdkGeometryFlags;
-gboolean eel_gdk_rgba_is_dark (const GdkRGBA *color);
-
/* Wrapper for XParseGeometry */
EelGdkGeometryFlags eel_gdk_parse_geometry (const char *string,
int *x_return,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]