[empathy] src/ephy-spinner.c: remove useless guint comparaisons



commit 3a1bca56854b66d288c875c86756ae913cb80e60
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Oct 20 15:56:40 2009 +0100

    src/ephy-spinner.c: remove useless guint comparaisons

 src/ephy-spinner.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-spinner.c b/src/ephy-spinner.c
index e7285bc..d2d5045 100644
--- a/src/ephy-spinner.c
+++ b/src/ephy-spinner.c
@@ -392,7 +392,7 @@ ephy_spinner_cache_get_images (EphySpinnerCache *cache,
 
 	LOG ("Getting animation images for screen %p at size %d", screen, icon_size);
 
-	g_return_val_if_fail (icon_size >= 0 && icon_size < LAST_ICON_SIZE, NULL);
+	g_return_val_if_fail (icon_size < LAST_ICON_SIZE, NULL);
 
 	/* Backward compat: "invalid" meant "native" size which doesn't exist anymore */
 	if (icon_size == GTK_ICON_SIZE_INVALID)
@@ -642,8 +642,7 @@ ephy_spinner_expose (GtkWidget *widget,
 	/* Otherwise |images| will be NULL anyway */
 	g_assert (images->n_animation_pixbufs > 0);
 		
-	g_assert (details->current_image >= 0 &&
-		  details->current_image < images->n_animation_pixbufs);
+	g_assert (details->current_image < images->n_animation_pixbufs);
 
 	pixbuf = images->animation_pixbufs[details->current_image];
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]