comparison libpurple/protocols/qq/qq.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 c60c9c95bb00
children 3a94faf350c7
comparison
equal deleted inserted replaced
30429:922c8c553758 30430:351d07aefb09
87 87
88 static void server_list_create(PurpleAccount *account) 88 static void server_list_create(PurpleAccount *account)
89 { 89 {
90 PurpleConnection *gc; 90 PurpleConnection *gc;
91 qq_data *qd; 91 qq_data *qd;
92 PurpleProxyInfo *gpi;
93 const gchar *custom_server; 92 const gchar *custom_server;
94 93
95 gc = purple_account_get_connection(account); 94 gc = purple_account_get_connection(account);
96 g_return_if_fail(gc != NULL && gc->proto_data != NULL); 95 g_return_if_fail(gc != NULL && gc->proto_data != NULL);
97 qd = gc->proto_data; 96 qd = gc->proto_data;
98
99 gpi = purple_proxy_get_setup(account);
100 97
101 qd->use_tcp = purple_account_get_bool(account, "use_tcp", TRUE); 98 qd->use_tcp = purple_account_get_bool(account, "use_tcp", TRUE);
102 99
103 custom_server = purple_account_get_string(account, "server", NULL); 100 custom_server = purple_account_get_string(account, "server", NULL);
104 101
615 } 612 }
616 613
617 static void action_about_openq(PurplePluginAction *action) 614 static void action_about_openq(PurplePluginAction *action)
618 { 615 {
619 PurpleConnection *gc = (PurpleConnection *) action->context; 616 PurpleConnection *gc = (PurpleConnection *) action->context;
620 qq_data *qd;
621 GString *info; 617 GString *info;
622 gchar *title; 618 gchar *title;
623 619
624 g_return_if_fail(NULL != gc && NULL != gc->proto_data); 620 g_return_if_fail(NULL != gc);
625 qd = (qq_data *) gc->proto_data;
626 621
627 info = g_string_new("<html><body>"); 622 info = g_string_new("<html><body>");
628 g_string_append(info, _("<p><b>Original Author</b>:<br>\n")); 623 g_string_append(info, _("<p><b>Original Author</b>:<br>\n"));
629 g_string_append(info, "puzzlebird<br>\n"); 624 g_string_append(info, "puzzlebird<br>\n");
630 g_string_append(info, "<br>\n"); 625 g_string_append(info, "<br>\n");