diff options
author | Benjamin Otte <otte@redhat.com> | 2014-04-30 09:16:04 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-05-01 14:51:28 +0200 |
commit | 68ceab68726b6afa2d44ad71222dbf317be7a25f (patch) | |
tree | 1c8989ed44d9d1523af25a792d126ccd5b608992 /gtk/gtkinfobar.c | |
parent | f72b496a457d15ad4b3739e7989598da362eb536 (diff) | |
download | gtk+-68ceab68726b6afa2d44ad71222dbf317be7a25f.tar.gz |
infobar: Remove unneeded checks
Size vfuncs always get non-null out variables passed, so no need to
check for NULL.
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r-- | gtk/gtkinfobar.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 804776d80b..35d28959b0 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -337,10 +337,8 @@ gtk_info_bar_get_preferred_width (GtkWidget *widget, minimum_width, natural_width); - if (minimum_width) - *minimum_width += border.left + border.right; - if (natural_width) - *natural_width += border.left + border.right; + *minimum_width += border.left + border.right; + *natural_width += border.left + border.right; } static void @@ -356,10 +354,8 @@ gtk_info_bar_get_preferred_height (GtkWidget *widget, minimum_height, natural_height); - if (minimum_height) - *minimum_height += border.top + border.bottom; - if (natural_height) - *natural_height += border.top + border.bottom; + *minimum_height += border.top + border.bottom; + *natural_height += border.top + border.bottom; } static gboolean |