[gnome-mag/cairo-port: 5/8] Remove dead code



commit 8e79333dbcde8f667c6cfde8955d77ca9367a044
Author: Benjamin Otte <otte redhat com>
Date:   Fri Aug 13 03:27:45 2010 +0200

    Remove dead code

 magnifier/x11/gmag-graphical-server.c |   44 ---------------------------------
 1 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/magnifier/x11/gmag-graphical-server.c b/magnifier/x11/gmag-graphical-server.c
index c322557..a630466 100644
--- a/magnifier/x11/gmag-graphical-server.c
+++ b/magnifier/x11/gmag-graphical-server.c
@@ -78,50 +78,6 @@ static gint               _x_error = 0;
 #define EVENTS_DEBUG
 #undef  EVENTS_DEBUG
 
-static void
-gmag_gs_cursor_convert_to_rgba (Magnifier *magnifier,
-				XFixesCursorImage *cursor_image)
-{
-	int i, count = cursor_image->width * cursor_image->height;
-	for (i = 0; i < count; ++i) {
-		guint32 pixval = GUINT_TO_LE (cursor_image->pixels[i]);
-		cursor_image->pixels[i] = pixval;
-	}
-}
-
-static void
-gmag_gs_free_cursor_pixels (guchar *pixels, gpointer data)
-{
-    /* XFree (data); FIXME why doesn't this work properly? */
-}
-
-GdkPixbuf *
-gmag_gs_get_source_pixbuf (Magnifier *magnifier)
-{
-	XFixesCursorImage *cursor_image = XFixesGetCursorImage (dpy);
-        GdkPixbuf *cursor_pixbuf = NULL;
-	gchar s[6];
-
-	if (cursor_image) {
-	        gmag_gs_cursor_convert_to_rgba (magnifier, cursor_image);
-		cursor_pixbuf = gdk_pixbuf_new_from_data (
-			(guchar *) cursor_image->pixels, GDK_COLORSPACE_RGB,
-			TRUE, 8, cursor_image->width, cursor_image->height,
-			cursor_image->width * 4,
-			gmag_gs_free_cursor_pixels, cursor_image);
-		gdk_pixbuf_set_option (cursor_pixbuf, "x_hot", 
-				       g_ascii_dtostr (
-					       s, 6,
-					       (gdouble) cursor_image->xhot));
-		gdk_pixbuf_set_option (cursor_pixbuf, "y_hot", 
-				       g_ascii_dtostr (
-					       s, 6,
-					       (gdouble) cursor_image->yhot));
-	}
-
-	return cursor_pixbuf;
-}
-
 gboolean
 gmag_gs_source_has_damage_extension (Magnifier *magnifier)
 {



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