]> git.0d.be Git - empathy.git/commitdiff
src/ephy-spinner.c: remove useless guint comparaisons
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 20 Oct 2009 14:56:40 +0000 (15:56 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 20 Oct 2009 15:01:27 +0000 (16:01 +0100)
src/ephy-spinner.c

index e7285bc0dc8fe1e4fda75399e547446e324cdba0..d2d50453c49b0496dc328d3747b53e7283e2682a 100644 (file)
@@ -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];