diff options
author | Benjamin Otte <otte@redhat.com> | 2014-04-30 09:09:39 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-05-01 14:51:27 +0200 |
commit | 9652b8cf82a8f4e80c50968b8fdc4bf32612b4e8 (patch) | |
tree | 1197708fa9c051b313a37d87443f450fab10b219 /gtk | |
parent | 29a4f0131e7f2a8ec3c0e4949d00dfed255d5995 (diff) | |
download | gtk+-9652b8cf82a8f4e80c50968b8fdc4bf32612b4e8.tar.gz |
viewport: Remove unneeded checks
Size vfuncs always get non-null out variables passed, so no need to
check for NULL.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkviewport.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 4d1e8134eb..ec6655fd67 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -1084,11 +1084,8 @@ gtk_viewport_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 |