summaryrefslogtreecommitdiff
path: root/pango/pango-fontmap.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-09-19 23:44:50 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-09-19 23:44:50 +0000
commitac2f15f7238021cbfd2ad7b324b707bbea19e76f (patch)
treefadd0e0405343b637e271e8e7c930bc813f8df81 /pango/pango-fontmap.c
parentc8c873fb519799f61034d61f23f6e2ec1decb569 (diff)
downloadpango-ac2f15f7238021cbfd2ad7b324b707bbea19e76f.tar.gz
Remove pango_font_map_free_families, which was no longer in the headers,
Wed Sep 19 19:28:52 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-fontmap.c: Remove pango_font_map_free_families, which was no longer in the headers, no longer needed, and no longer working. * pango/pango-fontmap.c (pango_font_map_list_families) * pango/pango-context.c (pango_context_list_families): Remove references to pango_font_map_free_families.
Diffstat (limited to 'pango/pango-fontmap.c')
-rw-r--r--pango/pango-fontmap.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c
index a7b5b5f2..30685677 100644
--- a/pango/pango-fontmap.c
+++ b/pango/pango-fontmap.c
@@ -70,8 +70,8 @@ pango_font_map_load_font (PangoFontMap *fontmap,
/**
* pango_font_map_list_families:
* @fontmap: a #PangoFontMap
- * @families: location to store a pointer to an array of strings.
- * This array should be freed with pango_font_map_free_families().
+ * @families: location to store a pointer to an array of PangoFontFamily *.
+ * This array should be freed with g_free().
* @n_families: location to store the number of elements in @descs
*
* List all families for a fontmap.
@@ -85,26 +85,3 @@ pango_font_map_list_families (PangoFontMap *fontmap,
PANGO_FONT_MAP_GET_CLASS (fontmap)->list_families (fontmap, families, n_families);
}
-
-/**
- * pango_font_map_free_families:
- * @families: a list of families
- * @n_families: number of elements in @families
- *
- * Free a list of families returned from pango_font_map_list_families()
- **/
-void
-pango_font_map_free_families (gchar **families,
- int n_families)
-{
- int i;
-
- g_return_if_fail (n_families == 0 || families != NULL);
-
- for (i=0; i<n_families; i++)
- g_free (families[i]);
-
- g_free (families);
-}
-
-