[gtk+] alignment: Remove unneeded checks
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] alignment: Remove unneeded checks
- Date: Thu, 1 May 2014 13:14:18 +0000 (UTC)
commit 71fe1a5fe31d234c110f5cd27eb6fcb040af4b7d
Author: Benjamin Otte <otte redhat com>
Date: Wed Apr 30 08:37:52 2014 +0200
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 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c
index fc22d5b..3f26c71 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]