From b4344b5ab5ace489640d8477a07f71574a6dabd6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 17 Sep 2010 11:19:46 +0200 Subject: [PATCH] Remove NULL checks in meta_frame_layout_get_borders() This function actually handles NULL. (And I'm going to pass some NULLs soon). https://bugzilla.gnome.org/show_bug.cgi?id=630203 --- src/ui/theme.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ui/theme.c b/src/ui/theme.c index c7794a330..6e51a5d37 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -413,10 +413,7 @@ meta_frame_layout_get_borders (const MetaFrameLayout *layout, { int buttons_height, title_height; - g_return_if_fail (top_height != NULL); - g_return_if_fail (bottom_height != NULL); - g_return_if_fail (left_width != NULL); - g_return_if_fail (right_width != NULL); + g_return_if_fail (layout != NULL); if (!layout->has_title) text_height = 0;