Commit 7d0025d2 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Delete.

2002-10-11  Morten Welinder  <terra@diku.dk>

	* src/gutils.c (g_strsplit_to_list): Delete.

2002-10-11  Morten Welinder  <terra@diku.dk>

	* dialog-autoformat.c (dialog_autoformat): Elminate
	e_free_string_list usage.
parent e7f55263
2002-10-11 Morten Welinder <terra@diku.dk>
* src/gutils.c (g_strsplit_to_list): Delete.
2002-10-11 Jon K Hellan <hellan@acm.org>
* configure.in: Remove plugins/python/Makefile
......
2002-10-11 Morten Welinder <terra@diku.dk>
* src/gutils.c (g_strsplit_to_list): Delete.
2002-10-11 Jon K Hellan <hellan@acm.org>
* configure.in: Remove plugins/python/Makefile
......
2002-10-11 Morten Welinder <terra@diku.dk>
* src/gutils.c (g_strsplit_to_list): Delete.
2002-10-11 Jon K Hellan <hellan@acm.org>
* configure.in: Remove plugins/python/Makefile
......
2002-10-11 Morten Welinder <terra@diku.dk>
* dialog-autoformat.c (dialog_autoformat): Elminate
e_free_string_list usage.
2002-10-09 Jody Goldberg <jody@gnome.org>
* dialog-define-names.c (cb_name_guru_destroy) : fix warning.
......
......@@ -677,7 +677,8 @@ dialog_autoformat (WorkbookControlGUI *wbcg)
} else
g_warning ("General category not found");
e_free_string_list (names_list);
g_list_foreach (names_list, (GFunc)g_free, NULL);
g_list_free (names_list);
cb_category_popwin_hide (GTK_WIDGET (state->category), state);
}
......
......@@ -236,35 +236,6 @@ g_slist_map (GSList *list, GnmMapFunc map_func)
return g_slist_reverse (list_copy);
}
/**
* g_strsplit_to_list:
* @string: String to split
* @delimiter: Token delimiter
*
* Splits up string into tokens at delim and returns a string list.
*
* Return value: string list which you should free after use using function
* e_free_string_list().
*
*/
GList *
g_strsplit_to_list (gchar const *string, gchar const *delimiter)
{
gchar **token_v;
GList *string_list = NULL;
gint i;
token_v = g_strsplit (string, delimiter, 0);
if (token_v != NULL) {
for (i = 0; token_v[i] != NULL; i++) {
string_list = g_list_prepend (string_list, token_v[i]);
}
string_list = g_list_reverse (string_list);
g_free (token_v);
}
return string_list;
}
/**
* g_strsplit_to_slist:
* @string: String to split
......
......@@ -20,7 +20,6 @@ int g_str_compare (void const *x, void const *y);
GList *g_create_list (gpointer item1, ...);
gint g_list_index_custom (GList *list, gpointer data, GCompareFunc cmp_func);
void g_list_free_custom (GList *list, GFreeFunc free_func);
GList *g_strsplit_to_list (const gchar *string, const gchar *delimiter);
#define GNM_LIST_FOREACH(list,valtype,val,stmnt) \
G_STMT_START { \
GList *gnm_l; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment