From 71fe1a5fe31d234c110f5cd27eb6fcb040af4b7d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 30 Apr 2014 08:37:52 +0200 Subject: [PATCH] alignment: Remove unneeded checks Size vfuncs always get non-null out variables passed, so no need to check for NULL. --- gtk/gtkalignment.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c index fc22d5b12e..3f26c716c4 100644 --- a/gtk/gtkalignment.c +++ b/gtk/gtkalignment.c @@ -679,11 +679,8 @@ gtk_alignment_get_preferred_size (GtkWidget *widget, natural += child_nat; } - if (minimum_size) - *minimum_size = minimum; - - if (natural_size) - *natural_size = natural; + *minimum_size = minimum; + *natural_size = natural; } static void