summaryrefslogtreecommitdiff
path: root/eel/eel-gdk-extensions.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-08-21 03:29:50 +0300
committermonsta <[email protected]>2016-08-22 16:40:21 +0300
commit3c6122df79f4d6e86d7afa0e6c4b64403de7bc44 (patch)
treebd06579cadb62b290fb983f61a02e4dedb3f64b1 /eel/eel-gdk-extensions.c
parent6f295db45ebcb52c6e9ad39f8d639e35f88c5ef5 (diff)
downloadcaja-3c6122df79f4d6e86d7afa0e6c4b64403de7bc44.tar.bz2
caja-3c6122df79f4d6e86d7afa0e6c4b64403de7bc44.tar.xz
drop a large amount of completely unused code
Diffstat (limited to 'eel/eel-gdk-extensions.c')
-rw-r--r--eel/eel-gdk-extensions.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/eel/eel-gdk-extensions.c b/eel/eel-gdk-extensions.c
index 58610529..448e933a 100644
--- a/eel/eel-gdk-extensions.c
+++ b/eel/eel-gdk-extensions.c
@@ -392,12 +392,6 @@ eel_rgb16_to_rgb (gushort r, gushort g, gushort b)
return result;
}
-guint32
-eel_rgb8_to_rgb (guchar r, guchar g, guchar b)
-{
- return eel_rgb16_to_rgb (r << 8, g << 8, b << 8);
-}
-
#if GTK_CHECK_VERSION (3, 0, 0)
/**
* eel_gdk_rgba_to_rgb
@@ -612,38 +606,6 @@ eel_gdk_draw_layout_with_drop_shadow (GdkDrawable *drawable,
}
#endif
-#if GTK_CHECK_VERSION(3,0,0)
-#define CLAMP_COLOR(v) (t = (v), CLAMP (t, 0, 1))
-#define SATURATE(v) ((1.0 - saturation) * intensity + saturation * (v))
-
-void
-eel_make_color_inactive (GdkRGBA *color)
-{
- double intensity, saturation;
- gdouble t;
-
- saturation = 0.7;
- intensity = color->red * 0.30 + color->green * 0.59 + color->blue * 0.11;
- color->red = SATURATE (color->red);
- color->green = SATURATE (color->green);
- color->blue = SATURATE (color->blue);
-
- if (intensity > 0.5) {
- color->red *= 0.9;
- color->green *= 0.9;
- color->blue *= 0.9;
- } else {
- color->red *= 1.25;
- color->green *= 1.25;
- color->blue *= 1.25;
- }
-
- color->red = CLAMP_COLOR (color->red);
- color->green = CLAMP_COLOR (color->green);
- color->blue = CLAMP_COLOR (color->blue);
-}
-#endif
-
#if ! defined (EEL_OMIT_SELF_CHECK)
#if GTK_CHECK_VERSION(3,0,0)