diff libgaim/protocols/qq/im.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 3c58357772a2
children 108152f29f37
line wrap: on
line diff
--- a/libgaim/protocols/qq/im.c	Tue Sep 26 21:37:37 2006 +0000
+++ b/libgaim/protocols/qq/im.c	Tue Sep 26 22:54:24 2006 +0000
@@ -252,7 +252,7 @@
 	qq_data *qd;
 	qq_recv_normal_im_text *im_text;
 
-	g_return_if_fail(gc != NULL && gc->proto_data != NULL && common != NULL);
+	g_return_if_fail(common != NULL);
 	qd = (qq_data *) gc->proto_data;
 
 	/* now it is QQ_NORMAL_IM_TEXT */
@@ -402,7 +402,7 @@
 	guint8 reply;
 	gchar **segments, *msg_utf8;
 
-	g_return_if_fail(gc != NULL && data != NULL && data_len != 0);
+	g_return_if_fail(data != NULL && data_len != 0);
 
 	if (*cursor >= (data + data_len - 1)) {
 		gaim_debug(GAIM_DEBUG_WARNING, "QQ", "Received sys IM is empty\n");
@@ -435,8 +435,6 @@
 	gboolean is_bold = FALSE, is_italic = FALSE, is_underline = FALSE;
 	const gchar *start, *end, *last;
 
-	g_return_if_fail(gc != NULL && gc->proto_data != NULL);
-
 	qd = (qq_data *) gc->proto_data;
 	client_tag = QQ_CLIENT;
 	normal_im_type = QQ_NORMAL_IM_TEXT;
@@ -554,7 +552,6 @@
 	gint len;
 	guint8 *data, *cursor, reply;
 
-	g_return_if_fail(gc != NULL && gc->proto_data != NULL);
 	g_return_if_fail(buf != NULL && buf_len != 0);
 
 	qd = gc->proto_data;
@@ -584,7 +581,6 @@
 	guint8 *data, *cursor;
 	qq_recv_im_header *im_header;
 
-	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;