cpw.qulogic.msn: f628b0dd: Take out the code on MSN for REM and SYN...

qulogic at pidgin.im qulogic at pidgin.im
Sun Jul 13 01:51:28 EDT 2008


-----------------------------------------------------------------
Revision: f628b0dd910dce9a1db02785b5ee59ffbcfd91c4
Ancestor: d6d2e0024c0c5f5f7b447551d746d165e2b58a8d
Author: qulogic at pidgin.im
Date: 2008-07-13T04:31:00
Branch: im.pidgin.cpw.qulogic.msn
URL: http://d.pidgin.im/viewmtn/revision/info/f628b0dd910dce9a1db02785b5ee59ffbcfd91c4

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

ChangeLog: 

Take out the code on MSN for REM and SYN that I missed.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	6dc1a0e96efcbd7e66802399e72d5b9564644919
+++ libpurple/protocols/msn/notification.c	a59a26323012a3ab1fba5531e5980341d40d4bdb
@@ -1238,35 +1238,7 @@ reg_error(MsnCmdProc *cmdproc, MsnTransa
 	g_strfreev(params);
 }
 
-#if 0
 static void
-rem_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
-{
-	MsnSession *session;
-	MsnUser *user;
-	const char *group_id, *list, *passport;
-	MsnListId list_id;
-
-	session = cmdproc->session;
-	list = cmd->params[1];
-	passport = cmd->params[3];
-	user = msn_userlist_find_user(session->userlist, passport);
-
-	g_return_if_fail(user != NULL);
-
-	list_id = msn_get_list_id(list);
-
-	if (cmd->param_count == 5)
-		group_id = cmd->params[4];
-	else
-		group_id = NULL;
-
-	msn_got_rem_user(session, user, list_id, group_id);
-	msn_user_update(user);
-}
-#endif
-
-static void
 rmg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
 {
 	MsnSession *session;
@@ -1293,39 +1265,6 @@ rmg_error(MsnCmdProc *cmdproc, MsnTransa
 	g_strfreev(params);
 }
 
-#if 0
-static void
-syn_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
-{
-	MsnSession *session;
-	MsnSync *sync;
-	int total_users;
-
-	session = cmdproc->session;
-
-	if (cmd->param_count == 2)
-	{
-		/*
-		 * This can happen if we sent a SYN with an up-to-date
-		 * buddy list revision, but we send 0 to get a full list.
-		 * So, error out.
-		 */
-
-		msn_session_set_error(cmdproc->session, MSN_ERROR_BAD_BLIST, NULL);
-		return;
-	}
-
-	total_users  = atoi(cmd->params[2]);
-
-	sync = msn_sync_new(session);
-	sync->total_users = total_users;
-	sync->old_cbs_table = cmdproc->cbs_table;
-
-	session->sync = sync;
-	cmdproc->cbs_table = sync->cbs_table;
-}
-#endif
-
 /**************************************************************************
  * Misc commands
  **************************************************************************/


More information about the Commits mailing list