Skip to content

Commit 7da1b27

Browse files
QuLogicgrimmy
authored andcommitted
Remove unused variables
1 parent 965267e commit 7da1b27

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

qq/group.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ PurpleRoomlist *qq_roomlist_get_list(PurpleConnection *gc)
119119
/* free roomlist space, I have no idea when this one is called... */
120120
void qq_roomlist_cancel(PurpleRoomlist *list)
121121
{
122-
PurpleConnection *gc;
123-
124122
g_return_if_fail(list != NULL);
125-
gc = purple_account_get_connection(list->account);
126123

127124
purple_roomlist_set_in_progress(list, FALSE);
128125
purple_roomlist_unref(list);

qq/im.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,10 @@ gint qq_send_im(PurpleConnection *gc, const gchar *who, const gchar *what, Purpl
12531253
gint msg_len;
12541254
const gchar *start_invalid;
12551255
gboolean is_smiley_none;
1256+
#if 0
12561257
guint8 frag_count, frag_index;
12571258
guint8 msg_id;
1259+
#endif
12581260

12591261
g_return_val_if_fail(NULL != gc && NULL != gc->proto_data, -1);
12601262
g_return_val_if_fail(who != NULL && what != NULL, -1);
@@ -1300,18 +1302,24 @@ gint qq_send_im(PurpleConnection *gc, const gchar *who, const gchar *what, Purpl
13001302
}
13011303

13021304
qd->send_im_id++;
1305+
#if 0
13031306
msg_id = (guint8)(qd->send_im_id && 0xFF);
1307+
#endif
13041308
fmt = qq_im_fmt_new_by_purple(what);
1309+
#if 0
13051310
frag_count = g_slist_length(segments);
13061311
frag_index = 0;
1312+
#endif
13071313
for (it = segments; it; it = it->next) {
1308-
/*
1314+
#if 0
13091315
request_send_im(gc, uid_to, type, fmt, (gchar *)it->data,
13101316
msg_id, frag_count, frag_index);
1311-
*/
1317+
#endif
13121318
request_send_im(gc, uid_to, type, fmt, (gchar *)it->data, 0, 0, 0);
13131319
g_free(it->data);
1320+
#if 0
13141321
frag_index++;
1322+
#endif
13151323
}
13161324
g_slist_free(segments);
13171325
qq_im_fmt_free(fmt);

qq/qq_base.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,6 @@ guint8 qq_process_token_ex(PurpleConnection *gc, guint8 *data, gint data_len)
890890
{
891891
qq_data *qd;
892892
int bytes;
893-
guint8 ret;
894893
guint8 sub_cmd;
895894
guint8 reply;
896895
guint16 captcha_len;
@@ -901,8 +900,6 @@ guint8 qq_process_token_ex(PurpleConnection *gc, guint8 *data, gint data_len)
901900
g_return_val_if_fail(gc != NULL && gc->proto_data != NULL, QQ_LOGIN_REPLY_ERR);
902901
qd = (qq_data *) gc->proto_data;
903902

904-
ret = data[0];
905-
906903
bytes = 0;
907904
bytes += qq_get8(&sub_cmd, data + bytes); /* 03: ok; 04: need verifying */
908905
bytes += 2; /* 0x(00 05) */

0 commit comments

Comments
 (0)