summaryrefslogtreecommitdiff
path: root/src/core/boxes.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-07 15:06:53 +0100
committerlukefromdc <[email protected]>2019-04-11 17:43:20 +0000
commit90da480f09838deeff34aa54fc8fe33607adf93a (patch)
treeb473559c956c3a85dfd41f1a3b749d4b4c224f33 /src/core/boxes.c
parent33b50db83103e5260695706668e50798762adf90 (diff)
downloadmarco-90da480f09838deeff34aa54fc8fe33607adf93a.tar.bz2
marco-90da480f09838deeff34aa54fc8fe33607adf93a.tar.xz
Replace meta_rectangle_free_list_and_elements with g_list_free_full
Use g_list_free_full
Diffstat (limited to 'src/core/boxes.c')
-rw-r--r--src/core/boxes.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/boxes.c b/src/core/boxes.c
index c9ce916a..e05924e6 100644
--- a/src/core/boxes.c
+++ b/src/core/boxes.c
@@ -764,12 +764,6 @@ meta_rectangle_expand_to_avoiding_struts (MetaRectangle *rect,
} /* end loop over struts */
} /* end meta_rectangle_expand_to_avoiding_struts */
-void
-meta_rectangle_free_list_and_elements (GList *filled_list)
-{
- g_list_free_full (filled_list, g_free);
-}
-
gboolean
meta_rectangle_could_fit_in_region (const GList *spanning_rects,
const MetaRectangle *rect)
@@ -1783,7 +1777,7 @@ meta_rectangle_find_onscreen_edges (const MetaRectangle *basic_rect,
ret = g_list_sort (ret, meta_rectangle_edge_cmp);
/* Free the fixed struts list */
- meta_rectangle_free_list_and_elements (fixed_strut_rects);
+ g_list_free_full (fixed_strut_rects, g_free);
return ret;
}