diff libgaim/protocols/qq/recv_core.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 26bca01c7076
children d1a76ccb93c4
line wrap: on
line diff
--- a/libgaim/protocols/qq/recv_core.c	Tue Sep 26 21:37:37 2006 +0000
+++ b/libgaim/protocols/qq/recv_core.c	Tue Sep 26 22:54:24 2006 +0000
@@ -63,7 +63,6 @@
 	qq_data *qd;
 	guint8 *byte, mask;
 
-	g_return_val_if_fail(gc != NULL && gc->proto_data != NULL, FALSE);
 	qd = (qq_data *) gc->proto_data;
 	byte = &(qd->window[seq / 8]);
 	mask = (1 << (seq % 8));
@@ -72,7 +71,7 @@
 		return TRUE;	/* check mask */
 	(*byte) |= mask;
 	return FALSE;		/* set mask */
-}				/* _qq_check_packet_set_window */
+}
 
 /* default process, decrypt and dump */
 static void _qq_process_packet_default(guint8 *buf, gint buf_len, guint16 cmd, guint16 seq, GaimConnection *gc)
@@ -82,7 +81,6 @@
 	gchar *msg_utf8;
 	gint len;
 
-	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;
@@ -111,7 +109,6 @@
 	qq_recv_msg_header header;
 	packet_before_login *b4_packet;
 
-	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;
@@ -297,8 +294,6 @@
 
 	gc = (GaimConnection *) data;
 
-	g_return_if_fail(gc != NULL && gc->proto_data != NULL);
-
 	if(cond != GAIM_INPUT_READ) {
 		gaim_connection_error(gc, _("Socket error"));
 		return;