Mercurial > pidgin
diff libpurple/protocols/msn/notification.c @ 30906: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 | 23be655cc688 |
children | 2de522fa534a |
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))