summaryrefslogtreecommitdiff
path: root/gtk/gtkarrow.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-04-30 08:36:48 +0200
committerBenjamin Otte <otte@redhat.com>2014-05-01 14:51:27 +0200
commite6b15c88ca11211bf2e7a7df95396ba0330e1a03 (patch)
tree5810a8fce17811babf138e021db5cdd81606bbd2 /gtk/gtkarrow.c
parenta1bba344f241f5c054e8dc7813fb9e3842363a73 (diff)
downloadgtk+-e6b15c88ca11211bf2e7a7df95396ba0330e1a03.tar.gz
arrow: Remove unneeded checks
Size vfuncs always get non-null out variables passed, so no need to check for NULL.
Diffstat (limited to 'gtk/gtkarrow.c')
-rw-r--r--gtk/gtkarrow.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index e397644157..76f23a61b2 100644
--- a/gtk/gtkarrow.c
+++ b/gtk/gtkarrow.c
@@ -201,11 +201,8 @@ gtk_arrow_get_preferred_width (GtkWidget *widget,
_gtk_misc_get_padding_and_border (GTK_MISC (widget), &border);
- if (minimum_size)
- *minimum_size = MIN_ARROW_SIZE + border.left + border.right;
-
- if (natural_size)
- *natural_size = MIN_ARROW_SIZE + border.left + border.right;
+ *minimum_size = MIN_ARROW_SIZE + border.left + border.right;
+ *natural_size = MIN_ARROW_SIZE + border.left + border.right;
}
static void
@@ -217,11 +214,8 @@ gtk_arrow_get_preferred_height (GtkWidget *widget,
_gtk_misc_get_padding_and_border (GTK_MISC (widget), &border);
- if (minimum_size)
- *minimum_size = MIN_ARROW_SIZE + border.top + border.bottom;
-
- if (natural_size)
- *natural_size = MIN_ARROW_SIZE + border.top + border.bottom;
+ *minimum_size = MIN_ARROW_SIZE + border.top + border.bottom;
+ *natural_size = MIN_ARROW_SIZE + border.top + border.bottom;
}
/**