comparison libgaim/protocols/qq/buddy_status.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
comparison
equal deleted inserted replaced
14628:58202142e9ad 14629:6b8bc59414f0
116 gint get_icon_offset(GaimConnection *gc) 116 gint get_icon_offset(GaimConnection *gc)
117 { 117 {
118 GaimAccount *account; 118 GaimAccount *account;
119 GaimPresence *presence; 119 GaimPresence *presence;
120 120
121 g_return_val_if_fail(gc != NULL && gc->proto_data != NULL, 2);
122
123 account = gaim_connection_get_account(gc); 121 account = gaim_connection_get_account(gc);
124 presence = gaim_account_get_presence(account); 122 presence = gaim_account_get_presence(account);
125 123
126 if (gaim_presence_is_status_primitive_active(presence, GAIM_STATUS_INVISIBLE)) { 124 if (gaim_presence_is_status_primitive_active(presence, GAIM_STATUS_INVISIBLE)) {
127 return 2; 125 return 2;
142 guint32 misc_status; 140 guint32 misc_status;
143 gboolean fake_video; 141 gboolean fake_video;
144 GaimAccount *account; 142 GaimAccount *account;
145 GaimPresence *presence; 143 GaimPresence *presence;
146 144
147 g_return_if_fail(gc != NULL && gc->proto_data != NULL);
148
149 account = gaim_connection_get_account(gc); 145 account = gaim_connection_get_account(gc);
150 presence = gaim_account_get_presence(account); 146 presence = gaim_account_get_presence(account);
151 147
152 qd = (qq_data *) gc->proto_data; 148 qd = (qq_data *) gc->proto_data;
153 if (!qd->logged_in) 149 if (!qd->logged_in)
187 guint8 *data, *cursor, reply; 183 guint8 *data, *cursor, reply;
188 GaimBuddy *b; 184 GaimBuddy *b;
189 qq_buddy *q_bud; 185 qq_buddy *q_bud;
190 gchar *name; 186 gchar *name;
191 187
192 g_return_if_fail(gc != NULL && gc->proto_data != NULL);
193 g_return_if_fail(buf != NULL && buf_len != 0); 188 g_return_if_fail(buf != NULL && buf_len != 0);
194 189
195 qd = (qq_data *) gc->proto_data; 190 qd = (qq_data *) gc->proto_data;
196 len = buf_len; 191 len = buf_len;
197 data = g_newa(guint8, len); 192 data = g_newa(guint8, len);
224 GaimBuddy *b; 219 GaimBuddy *b;
225 qq_buddy *q_bud; 220 qq_buddy *q_bud;
226 qq_buddy_status *s; 221 qq_buddy_status *s;
227 gchar *name; 222 gchar *name;
228 223
229 g_return_if_fail(gc != NULL && gc->proto_data != NULL);
230 g_return_if_fail(buf != NULL && buf_len != 0); 224 g_return_if_fail(buf != NULL && buf_len != 0);
231 225
232 qd = (qq_data *) gc->proto_data; 226 qd = (qq_data *) gc->proto_data;
233 len = buf_len; 227 len = buf_len;
234 data = g_newa(guint8, len); 228 data = g_newa(guint8, len);