Mercurial > pidgin.yaz
changeset 31344:ac9035aeb087
Remove dead assignments in new MSN code.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 04 Nov 2010 04:41:48 +0000 |
parents | 56e1f06471a9 |
children | 8c9b6b7376b5 |
files | libpurple/protocols/msn/notification.c libpurple/protocols/msn/slp.c libpurple/protocols/msn/switchboard.c libpurple/protocols/msn/userlist.c |
diffstat | 4 files changed, 2 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Tue Nov 02 20:55:06 2010 +0000 +++ b/libpurple/protocols/msn/notification.c Thu Nov 04 04:41:48 2010 +0000 @@ -95,7 +95,6 @@ MsnCmdProc *cmdproc; MsnSession *session; MsnTransaction *trans; - PurpleAccount *account; GString *vers; const char *ver_str; int i; @@ -104,7 +103,6 @@ cmdproc = servconn->cmdproc; session = servconn->session; - account = session->account; vers = g_string_new(""); @@ -189,11 +187,7 @@ static void usr_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) { - MsnSession *session; - PurpleAccount *account; - - session = cmdproc->session; - account = session->account; + MsnSession *session = cmdproc->session; if (!g_ascii_strcasecmp(cmd->params[1], "OK")) { @@ -732,11 +726,8 @@ for (domain_node = xmlnode_get_child(root, "d"); domain_node; domain_node = xmlnode_get_next_twin(domain_node)) { - const gchar * domain = NULL; xmlnode *contact_node = NULL; - domain = xmlnode_get_attrib(domain_node, "n"); - for (contact_node = xmlnode_get_child(domain_node, "c"); contact_node; contact_node = xmlnode_get_next_twin(contact_node)) { @@ -1021,8 +1012,6 @@ iln_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) { MsnSession *session; - PurpleAccount *account; - PurpleConnection *gc; MsnUser *user; MsnObject *msnobj = NULL; unsigned long clientid, extcaps; @@ -1032,8 +1021,6 @@ char *friendly; session = cmdproc->session; - account = session->account; - gc = purple_account_get_connection(account); state = cmd->params[1]; passport = cmd->params[2]; @@ -1246,8 +1233,6 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) { MsnSession *session; - PurpleAccount *account; - PurpleConnection *gc; MsnUser *user; MsnObject *msnobj; unsigned long clientid, extcaps; @@ -1256,8 +1241,6 @@ const char *state, *passport, *friendly; session = cmdproc->session; - account = session->account; - gc = purple_account_get_connection(account); state = cmd->params[0]; passport = cmd->params[1]; @@ -1455,7 +1438,7 @@ swboard = msn_switchboard_new(session); msn_switchboard_set_invited(swboard, TRUE); - msn_switchboard_set_session_id(swboard, cmd->params[0]); + msn_switchboard_set_session_id(swboard, session_id); msn_switchboard_set_auth_key(swboard, cmd->params[3]); swboard->im_user = g_strdup(cmd->params[4]); /* msn_switchboard_add_user(swboard, cmd->params[4]); */ @@ -1696,14 +1679,12 @@ size_t len) { MsnSession *session; - PurpleAccount *account; MsnUser *user; const char *passport; xmlnode *payloadNode; char *psm_str, *str; session = cmdproc->session; - account = session->account; passport = cmd->params[0]; if (g_str_equal(passport, session->user->passport))
--- a/libpurple/protocols/msn/slp.c Tue Nov 02 20:55:06 2010 +0000 +++ b/libpurple/protocols/msn/slp.c Thu Nov 04 04:41:48 2010 +0000 @@ -118,7 +118,6 @@ got_user_display(MsnSlpCall *slpcall, const guchar *data, gsize size) { - MsnUserList *userlist; const char *info; PurpleAccount *account; @@ -128,7 +127,6 @@ if (purple_debug_is_verbose()) purple_debug_info("msn", "Got User Display: %s\n", slpcall->slplink->remote_user); - userlist = slpcall->slplink->session->userlist; account = slpcall->slplink->session->account; purple_buddy_icons_set_for_user(account, slpcall->slplink->remote_user,
--- a/libpurple/protocols/msn/switchboard.c Tue Nov 02 20:55:06 2010 +0000 +++ b/libpurple/protocols/msn/switchboard.c Thu Nov 04 04:41:48 2010 +0000 @@ -678,11 +678,9 @@ iro_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) { PurpleAccount *account; - PurpleConnection *gc; MsnSwitchBoard *swboard; account = cmdproc->session->account; - gc = account->gc; swboard = cmdproc->data; swboard->total_users = atoi(cmd->params[2]); @@ -695,7 +693,6 @@ { MsnSession *session; PurpleAccount *account; - PurpleConnection *gc; MsnSwitchBoard *swboard; const char *passport; @@ -703,7 +700,6 @@ session = cmdproc->session; account = session->account; - gc = account->gc; swboard = cmdproc->data; msn_switchboard_add_user(swboard, passport);
--- a/libpurple/protocols/msn/userlist.c Tue Nov 02 20:55:06 2010 +0000 +++ b/libpurple/protocols/msn/userlist.c Thu Nov 04 04:41:48 2010 +0000 @@ -699,8 +699,6 @@ if (userlist->buddy_icon_window > 0) { GQueue *queue; - PurpleAccount *account; - const char *username; queue = userlist->buddy_icon_requests; @@ -709,9 +707,6 @@ user = g_queue_pop_head(queue); - account = userlist->session->account; - username = user->passport; - userlist->buddy_icon_window--; msn_request_user_display(user);