aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-20 22:56:40 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-20 23:01:27 +0800
commit3a1bca56854b66d288c875c86756ae913cb80e60 (patch)
tree4bfda74e5bd680cc68a939baced0f5d645fff6bb
parent0edac04163ea89ac3ae0375dbd8e60a013a7a8d6 (diff)
downloadgsoc2013-empathy-3a1bca56854b66d288c875c86756ae913cb80e60.tar
gsoc2013-empathy-3a1bca56854b66d288c875c86756ae913cb80e60.tar.gz
gsoc2013-empathy-3a1bca56854b66d288c875c86756ae913cb80e60.tar.bz2
gsoc2013-empathy-3a1bca56854b66d288c875c86756ae913cb80e60.tar.lz
gsoc2013-empathy-3a1bca56854b66d288c875c86756ae913cb80e60.tar.xz
gsoc2013-empathy-3a1bca56854b66d288c875c86756ae913cb80e60.tar.zst
gsoc2013-empathy-3a1bca56854b66d288c875c86756ae913cb80e60.zip
src/ephy-spinner.c: remove useless guint comparaisons
-rw-r--r--src/ephy-spinner.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ephy-spinner.c b/src/ephy-spinner.c
index e7285bc0d..d2d50453c 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];