comparison libpurple/protocols/yahoo/yahoochat.c @ 30430:351d07aefb09

Kill off many dead assignments and any useless remaining variables. I think some of those QQ ones were actual logic errors, too. Let me know if there were any side-effects that were cut.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 23 Aug 2010 00:52:24 +0000
parents 7c871249318b
children a8cc50c2279f
comparison
equal deleted inserted replaced
30429:922c8c553758 30430:351d07aefb09
615 void yahoo_process_chat_exit(PurpleConnection *gc, struct yahoo_packet *pkt) 615 void yahoo_process_chat_exit(PurpleConnection *gc, struct yahoo_packet *pkt)
616 { 616 {
617 char *who = NULL; 617 char *who = NULL;
618 char *room = NULL; 618 char *room = NULL;
619 GSList *l; 619 GSList *l;
620 YahooData *yd;
621
622 yd = gc->proto_data;
623 620
624 for (l = pkt->hash; l; l = l->next) { 621 for (l = pkt->hash; l; l = l->next) {
625 struct yahoo_pair *pair = l->data; 622 struct yahoo_pair *pair = l->data;
626 623
627 if (pair->key == 104) { 624 if (pair->key == 104) {
636 PurpleConversation *c = purple_find_chat(gc, YAHOO_CHAT_ID); 633 PurpleConversation *c = purple_find_chat(gc, YAHOO_CHAT_ID);
637 if (c && !purple_utf8_strcasecmp(purple_conversation_get_name(c), room)) 634 if (c && !purple_utf8_strcasecmp(purple_conversation_get_name(c), room))
638 purple_conv_chat_remove_user(PURPLE_CONV_CHAT(c), who, NULL); 635 purple_conv_chat_remove_user(PURPLE_CONV_CHAT(c), who, NULL);
639 636
640 } 637 }
641 if (room) 638 g_free(room);
642 g_free(room);
643 } 639 }
644 640
645 void yahoo_process_chat_message(PurpleConnection *gc, struct yahoo_packet *pkt) 641 void yahoo_process_chat_message(PurpleConnection *gc, struct yahoo_packet *pkt)
646 { 642 {
647 char *room = NULL, *who = NULL, *msg = NULL, *msg2; 643 char *room = NULL, *who = NULL, *msg = NULL, *msg2;