[gtk+] box: Remove some unneeded checks
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] box: Remove some unneeded checks
- Date: Wed, 17 Jan 2018 20:54:21 +0000 (UTC)
commit c2d4f05ce0b85c175e2177dc19142a10660200e3
Author: Timm Bäder <mail baedert org>
Date: Tue Jan 16 18:47:52 2018 +0100
box: Remove some unneeded checks
We only call this function from the measure implementation and we should
never get NULL pointers there.
gtk/gtkbox.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index eafc62a..21f3881 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -1223,15 +1223,11 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box,
}
}
- if (minimum_baseline)
- *minimum_baseline = computed_minimum_baseline;
- if (natural_baseline)
- *natural_baseline = computed_natural_baseline;
-
- if (minimum_size)
*minimum_size = computed_minimum;
- if (natural_size)
*natural_size = MAX (computed_natural, computed_natural_below + computed_natural_above);
+
+ *minimum_baseline = computed_minimum_baseline;
+ *natural_baseline = computed_natural_baseline;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]