[gtk-engines] Remove more unused code.



commit 8bcec8bbcea71224e887abcd43a77a019c301165
Author: Benjamin Berg <benjamin sipsolutions net>
Date:   Sat Oct 9 19:08:31 2010 +0200

    Remove more unused code.

 engines/support/cairo-support.c |   22 ----------------------
 engines/support/cairo-support.h |    1 -
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/engines/support/cairo-support.c b/engines/support/cairo-support.c
index c92825a..ecec732 100644
--- a/engines/support/cairo-support.c
+++ b/engines/support/cairo-support.c
@@ -275,28 +275,6 @@ ge_mix_color (const CairoColor *color1, const CairoColor *color2,
 	composite->a = 1.0;
 }
 
-cairo_t * 
-ge_gdk_drawable_to_cairo (GdkDrawable  *window, GdkRectangle *area)
-{
-	cairo_t *cr;
-
-	g_return_val_if_fail (window != NULL, NULL);
-
-	cr = (cairo_t*) gdk_cairo_create (window);
-	cairo_set_line_width (cr, 1.0);
-	cairo_set_line_cap (cr, CAIRO_LINE_CAP_SQUARE);
-	cairo_set_line_join (cr, CAIRO_LINE_JOIN_MITER);
-
-	if (area)
-	{
-		cairo_rectangle (cr, area->x, area->y, area->width, area->height);
-		cairo_clip_preserve (cr);
-		cairo_new_path (cr);
-	}
-
-	return cr;
-}
-
 void 
 ge_cairo_set_color (cairo_t *cr, const CairoColor *color)
 {
diff --git a/engines/support/cairo-support.h b/engines/support/cairo-support.h
index c2f195e..893b8bf 100644
--- a/engines/support/cairo-support.h
+++ b/engines/support/cairo-support.h
@@ -104,7 +104,6 @@ GE_INTERNAL void ge_shade_color(const CairoColor *base, gdouble shade_ratio, Cai
 GE_INTERNAL void ge_saturate_color (const CairoColor * base, gdouble saturate_level, CairoColor *composite);
 GE_INTERNAL void ge_mix_color (const CairoColor *color1, const CairoColor *color2, gdouble mix_factor, CairoColor *composite);
 
-GE_INTERNAL cairo_t * ge_gdk_drawable_to_cairo (GdkDrawable  *window, GdkRectangle *area);
 GE_INTERNAL void ge_cairo_set_color (cairo_t *cr, const CairoColor *color);
 GE_INTERNAL void ge_cairo_set_gdk_color_with_alpha (cairo_t *cr, const GdkColor *color, gdouble alpha);
 GE_INTERNAL void ge_cairo_pattern_add_color_stop_color (cairo_pattern_t *pattern, gfloat offset, const CairoColor *color);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]