pidgin: 0e2af7d2: Remove some left over code.

qulogic at pidgin.im qulogic at pidgin.im
Sun Jun 7 04:10:48 EDT 2009


-----------------------------------------------------------------
Revision: 0e2af7d2799397628273f534fac31e6dd7c6fe14
Ancestor: 76f13d0fc7fbff369d01187fcc1b8f517854e119
Author: qulogic at pidgin.im
Date: 2009-06-07T04:56:15
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0e2af7d2799397628273f534fac31e6dd7c6fe14

Modified files:
        libpurple/protocols/msn/msn.c

ChangeLog: 

Remove some left over code.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msn.c	9dda2cd8dfff3a0ce26a32b8902e7d6ca141fe49
+++ libpurple/protocols/msn/msn.c	a04fa331e9ccdd0a218aa6283f727d88067cf2c6
@@ -1380,58 +1380,7 @@ msn_set_idle(PurpleConnection *gc, int i
 	msn_change_status(session);
 }
 
-#if 0
 static void
-fake_userlist_add_buddy(MsnUserList *userlist,
-					   const char *who, int list_id,
-					   const char *group_name)
-{
-	MsnUser *user;
-	static int group_id_c = 1;
-	int group_id;
-
-	group_id = -1;
-
-	if (group_name != NULL)
-	{
-		MsnGroup *group;
-		group = msn_group_new(userlist, group_id_c, group_name);
-		group_id = group_id_c++;
-	}
-
-	user = msn_userlist_find_user(userlist, who);
-
-	if (user == NULL)
-	{
-		user = msn_user_new(userlist, who, NULL);
-		msn_userlist_add_user(userlist, user);
-	}
-	else
-		if (user->list_op & (1 << list_id))
-		{
-			if (list_id == MSN_LIST_FL)
-			{
-				if (group_id >= 0)
-					if (g_list_find(user->group_ids,
-									GINT_TO_POINTER(group_id)))
-						return;
-			}
-			else
-				return;
-		}
-
-	if (group_id >= 0)
-	{
-		/* This is wrong... user->group_ids contains g_strdup()'d data now */
-		user->group_ids = g_list_append(user->group_ids,
-										GINT_TO_POINTER(group_id));
-	}
-
-	user->list_op |= (1 << list_id);
-}
-#endif
-
-static void
 msn_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group)
 {
 	MsnSession *session;
@@ -1447,23 +1396,11 @@ msn_add_buddy(PurpleConnection *gc, Purp
 	purple_debug_info("msn", "Add user:%s to group:%s\n", who, gname ? gname : "(null)");
 	if (!session->logged_in)
 	{
-#if 0
-		fake_userlist_add_buddy(session->sync_userlist, who, MSN_LIST_FL,
-								group ? group->name : NULL);
-#else
 		purple_debug_error("msn", "msn_add_buddy called before connected\n");
-#endif
 
 		return;
 	}
 
-#if 0
-	if (group != NULL && group->name != NULL)
-		purple_debug_info("msn", "msn_add_buddy: %s, %s\n", who, group->name);
-	else
-		purple_debug_info("msn", "msn_add_buddy: %s\n", who);
-#endif
-
 	/* XXX - Would group ever be NULL here?  I don't think so...
 	 * shx: Yes it should; MSN handles non-grouped buddies, and this is only
 	 * internal. */


More information about the Commits mailing list