Mercurial > pidgin.yaz
diff libgaim/protocols/qq/keep_alive.c @ 14629:6b8bc59414f0
[gaim-migrate @ 17375]
Get rid of these useless checks.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Tue, 26 Sep 2006 22:54:24 +0000 |
parents | 437ce90442cf |
children | c039c920e11c |
line wrap: on
line diff
--- a/libgaim/protocols/qq/keep_alive.c Tue Sep 26 21:37:37 2006 +0000 +++ b/libgaim/protocols/qq/keep_alive.c Tue Sep 26 22:54:24 2006 +0000 @@ -46,8 +46,6 @@ qq_data *qd; guint8 *raw_data, *cursor; - g_return_if_fail(gc != NULL && gc->proto_data != NULL); - qd = (qq_data *) gc->proto_data; raw_data = g_newa(guint8, 4); cursor = raw_data; @@ -67,7 +65,6 @@ gchar **segments; guint8 *data; - g_return_if_fail(gc != NULL && gc->proto_data != NULL); g_return_if_fail(buf != NULL && buf_len != 0); qd = (qq_data *) gc->proto_data; @@ -104,12 +101,9 @@ qq_data *qd; qq_buddy *q_bud; - g_return_if_fail(gc != NULL && gc->proto_data != NULL); - qd = (qq_data *) (gc->proto_data); now = time(NULL); list = qd->buddies; - g_return_if_fail(qd != NULL); while (list != NULL) { q_bud = (qq_buddy *) list->data; @@ -128,7 +122,7 @@ GaimBuddy *bud; gchar *status_id; - g_return_if_fail(gc != NULL && q_bud != NULL); + g_return_if_fail(q_bud != NULL); name = uid_to_gaim_name(q_bud->uid); bud = gaim_find_buddy(gc->account, name);