diff libgaim/protocols/qq/sys_msg.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 c039c920e11c
line wrap: on
line diff
--- a/libgaim/protocols/qq/sys_msg.c	Tue Sep 26 21:37:37 2006 +0000
+++ b/libgaim/protocols/qq/sys_msg.c	Tue Sep 26 22:54:24 2006 +0000
@@ -52,7 +52,6 @@
 	GaimAccount *account;
 
 	account = gaim_connection_get_account(gc);
-	g_return_if_fail(gc != NULL && gc->proto_data != NULL);
 
 	log = gaim_log_new(GAIM_LOG_IM,
 			"systemim",
@@ -141,7 +140,7 @@
 	gc_and_uid *g;
 	gchar *name;
 
-	g_return_if_fail(gc != NULL && from != NULL && to != NULL);
+	g_return_if_fail(from != NULL && to != NULL);
 
 	uid = strtol(from, NULL, 10);
 	name = uid_to_gaim_name(uid);
@@ -173,7 +172,7 @@
 {
 	gchar *message, *reason;
 
-	g_return_if_fail(gc != NULL && from != NULL && to != NULL);
+	g_return_if_fail(from != NULL && to != NULL);
 
 	message = g_strdup_printf(_("User %s rejected your request"), from);
 	reason = g_strdup_printf(_("Reason: %s"), msg_utf8);
@@ -190,7 +189,7 @@
 	gchar *message;
 	qq_data *qd;
 
-	g_return_if_fail(gc != NULL && from != NULL && to != NULL);
+	g_return_if_fail(from != NULL && to != NULL);
 
 	qd = (qq_data *) gc->proto_data;
 	qq_add_buddy_by_recv_packet(gc, strtol(from, NULL, 10), TRUE, TRUE);
@@ -211,7 +210,7 @@
 	GaimBuddy *b;
 	gchar *name;
 
-	g_return_if_fail(gc != NULL && from != NULL && to != NULL);
+	g_return_if_fail(from != NULL && to != NULL);
 
 	uid = strtol(from, NULL, 10);
 	g = g_new0(gc_and_uid, 1);
@@ -258,7 +257,6 @@
 	guint8 *data;
 	gchar **segments, *code, *from, *to, *msg, *msg_utf8;
 
-	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;