[maemo-commits] [maemo-commits] r16740 - projects/haf/trunk/hildon-thumbnail/daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Nov 18 15:45:46 EET 2008
Author: pvanhoof
Date: 2008-11-18 15:45:45 +0200 (Tue, 18 Nov 2008)
New Revision: 16740

Modified:
   projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c
Log:
Removed unneeded code

Modified: projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c	2008-11-18 13:36:46 UTC (rev 16739)
+++ projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c	2008-11-18 13:45:45 UTC (rev 16740)
@@ -27,6 +27,10 @@
 #include "config.h"
 #endif
 
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
 #include <string.h>
 #include <ctype.h>
 #include <glib.h>
@@ -296,29 +300,6 @@
 	dbus_g_method_return (context, num);
 }
 
-#ifndef strcasestr
-static char *
-strcasestr (char *haystack, char *needle)
-{
-	char *p, *startn = 0, *np = 0;
-
-	for (p = haystack; *p; p++) {
-		if (np) {
-			if (toupper(*p) == toupper(*np)) {
-				if (!*++np)
-					return startn;
-			} else
-				np = 0;
-		} else if (toupper(*p) == toupper(*needle)) {
-			np = needle + 1;
-			startn = p;
-		}
-	}
-
-	return 0;
-}
-#endif
-
 static gboolean 
 strv_contains (GStrv list, gchar *uri)
 {


More information about the maemo-commits mailing list