# HG changeset patch # User Richard Laager # Date 1132888058 0 # Node ID 152748df85cfc92fe24de8407d536728aba855e2 # Parent 64254fbabc7b218a5120358a57e938ef169053cc [gaim-migrate @ 14523] Suppress a warning, and simplify an if statement. Isn't it nice when the compiler tells you about useless code? committer: Tailor Script diff -r 64254fbabc7b -r 152748df85cf src/gtkstatusbox.c --- a/src/gtkstatusbox.c Fri Nov 25 01:33:10 2005 +0000 +++ b/src/gtkstatusbox.c Fri Nov 25 03:07:38 2005 +0000 @@ -85,7 +85,8 @@ NULL, /* class_data */ sizeof (GtkGaimStatusBox), 0, - (GInstanceInitFunc) gtk_gaim_status_box_init + (GInstanceInitFunc) gtk_gaim_status_box_init, + NULL /* value_table */ }; status_box_type = g_type_register_static(GTK_TYPE_COMBO_BOX, @@ -801,7 +802,7 @@ * "/core/savedstatus/current" and then calling * update_to_reflect_current_status() */ - if ((type < 0) || (type >= GAIM_STATUS_NUM_PRIMITIVES)) + if (type >= GAIM_STATUS_NUM_PRIMITIVES) return; if (status_box->account) {