gnome-scan r765 - trunk/modules/gsane



Author: bersace
Date: Wed Jan 14 21:20:56 2009
New Revision: 765
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=765&view=rev

Log:
Remove bit debugging functions.

Modified:
   trunk/modules/gsane/gsane-processor.c

Modified: trunk/modules/gsane/gsane-processor.c
==============================================================================
--- trunk/modules/gsane/gsane-processor.c	(original)
+++ trunk/modules/gsane/gsane-processor.c	Wed Jan 14 21:20:56 2009
@@ -67,49 +67,6 @@
 	GSaneProcessorFunc process;
 };
 
-static gchar*
-gsane_debug_byte(guchar val)
-{
-	guint i;
-	gchar* str = g_new0(gchar,1), *oldstr;
-	for(i = 0; i < 8; i++) {
-		oldstr = str;
-		str = g_strdup_printf("%d%s", val & (1<<i) ? 1 : 0, str);
-		g_free(oldstr);
-	}
-	return str;
-}
-
-static gchar*
-gsane_debug_byte_array(guchar*buf, guint buf_len)
-{
-	guint i;
-	gchar *str = g_new0(gchar,1), *oldstr;
-	for (i = 0; i < buf_len; i++) {
-		oldstr = str;
-		str = g_strdup_printf("%s%s", str, gsane_debug_byte(buf[i]));
-		if (oldstr)
-			g_free(oldstr);
-	}
-	return str;
-}
-
-static gchar*
-gsane_debug_int32(guint32 val)
-{
-	guint i;
-	gchar* str = g_new0(gchar,1), *oldstr;
-	for(i = 0; i < sizeof(val); i++) {
-		oldstr = str;
-#if G_BYTE_ORDER == G_BIG_ENDIAN
-		str = g_strdup_printf("%s%s", str, gsane_debug_byte(((guchar*)(&val))[i]));
-#else
-		str = g_strdup_printf("%s%s", gsane_debug_byte(((guchar*)(&val))[i]), str);
-#endif
-		g_free(oldstr);
-	}
-	return str;
-}
 
 void
 gsane_processor_init(GSaneProcessor *self)



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