From 91fcf748ea86a85685af4bee5fb269285e3e91ca Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 21 Jan 2007 16:27:41 +0000 Subject: Get rid of g_strfreev too --- eglib/gmain.c | 13 ------------- eglib/gmain.h | 1 - 2 files changed, 14 deletions(-) diff --git a/eglib/gmain.c b/eglib/gmain.c index 714aba13..102e8bc9 100644 --- a/eglib/gmain.c +++ b/eglib/gmain.c @@ -1160,19 +1160,6 @@ gchar *g_strdup(const gchar *str) return s; } -void g_strfreev(gchar **str_array) -{ - int i; - - if (!str_array) - return; - - for (i = 0; str_array[i] != NULL; i++) - g_free(str_array[i]); - - g_free(str_array); -} - /* GKeyFile */ typedef gpointer GHashTable; diff --git a/eglib/gmain.h b/eglib/gmain.h index 369602d8..9d2418ef 100644 --- a/eglib/gmain.h +++ b/eglib/gmain.h @@ -200,7 +200,6 @@ gpointer g_try_malloc0(gulong n_bytes); void g_free(gpointer mem); gchar *g_strdup(const gchar *str); -void g_strfreev(gchar **str_array); #define g_new(struct_type, n_structs) \ ((struct_type *) g_malloc (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) -- cgit