From c31b8ff081f20e65ac0677d206ed234e153aa2b6 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Mon, 7 Apr 2014 12:30:10 +0300 Subject: [PATCH] Don't check item->width twice (Bug 10534) There's no need to check item->width twice on the same line. Also checking for item->height isn't needed because the function never uses item->height but does set it at the end. --- src/icon_bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icon_bar.c b/src/icon_bar.c index e69572d..b7f9bdf 100644 --- a/src/icon_bar.c +++ b/src/icon_bar.c @@ -1382,7 +1382,7 @@ rstto_icon_bar_calculate_item_size ( gint focus_pad; gint int_pad; - if (G_LIKELY (item->width != -1 && item->width != -1)) + if (G_LIKELY (item->width != -1)) return; gtk_widget_style_get (GTK_WIDGET (icon_bar), -- 1.9.1