changeset 24433:40141d227b27

Seriously why would you ever do this? Use g_path_get_basename()
author Mark Doliner <mark@kingant.net>
date Fri, 14 Nov 2008 20:13:22 +0000
parents 95f0895f6c56
children 8bde168ddfa9 565df7f3ed49
files libpurple/protocols/qq/buddy_info.c
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/qq/buddy_info.c	Fri Nov 14 20:06:55 2008 +0000
+++ b/libpurple/protocols/qq/buddy_info.c	Fri Nov 14 20:13:22 2008 +0000
@@ -486,7 +486,6 @@
 	gchar *basename;
 	size_t index;
 	gint face;
-	gchar *error;
 
 	g_return_if_fail(filepath != NULL);
 
@@ -505,8 +504,6 @@
 {
 	PurpleAccount *account = purple_connection_get_account(gc);
 	const gchar *icon_path = purple_account_get_buddy_icon_path(account);
-	gchar **segments;
-	gint index;
 
 	g_return_if_fail(icon_path != NULL);
 
@@ -515,12 +512,6 @@
 	 *  purple_imgstore_get_filename is always new file
 	 *  QQ buddy may set custom icon if level is over 16 */
 	purple_debug_info("QQ", "Change my icon to %s\n", icon_path);
-	segments = g_strsplit_set(icon_path, G_DIR_SEPARATOR_S, 0);
-	for (index = 0; segments[index] != NULL; index++) {
-		purple_debug_info("QQ", "Split to %s\n", segments[index]);
-	}
-
-	g_strfreev(segments);
 }
 
 gchar *qq_get_icon_name(gint face)