[goffice] Compilation: kill go_hash_values.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Compilation: kill go_hash_values.
- Date: Thu, 3 Nov 2011 19:19:46 +0000 (UTC)
commit 6e3e93a25e6e3c941a9de1155ad1b6fd52d0af76
Author: Morten Welinder <terra gnome org>
Date: Thu Nov 3 15:19:28 2011 -0400
Compilation: kill go_hash_values.
ChangeLog | 9 +++++++--
goffice/utils/go-glib-extras.c | 24 ------------------------
goffice/utils/go-glib-extras.h | 1 -
3 files changed, 7 insertions(+), 27 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 956bc93..b25c9a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+2011-11-03 Morten Welinder <terra gnome org>
+
+ * goffice/utils/go-glib-extras.c (go_hash_values): Remove.
+
2011-11-03 Jean Brefort <jean brefort normalesup org>
- * goffice/graph/gog-series.c (gog_series_populate_editor): fix interpolation
- widgets visibility. [#663283]
+
+ * goffice/graph/gog-series.c (gog_series_populate_editor): fix
+ interpolation widgets visibility. [#663283]
* goffice/utils/go-style.c (outline_init), (line_init),
(fill_init), (go_style_populate_editor): enhanced layout.
diff --git a/goffice/utils/go-glib-extras.c b/goffice/utils/go-glib-extras.c
index b8d8f5b..3671911 100644
--- a/goffice/utils/go-glib-extras.c
+++ b/goffice/utils/go-glib-extras.c
@@ -53,30 +53,6 @@ go_hash_keys (GHashTable *hash)
return accum;
}
-static void
-cb_hash_collect_values (gpointer key, gpointer value, GSList **accum)
-{
- *accum = g_slist_prepend (*accum, value);
-}
-
-/**
- * go_hash_values :
- * @hash : #GHashTable
- *
- * Collects an unordered list of the values in @hash.
- *
- * Returns: a list which the caller needs to free.
- * The content has not additional references added
- **/
-GSList *
-go_hash_values (GHashTable *hash)
-{
- GSList *accum = NULL;
- g_hash_table_foreach (hash,
- (GHFunc )cb_hash_collect_values, &accum);
- return accum;
-}
-
/***************************************************************************/
void
go_ptr_array_insert (GPtrArray *array, gpointer value, int index)
diff --git a/goffice/utils/go-glib-extras.h b/goffice/utils/go-glib-extras.h
index bc6c72d..c8f3737 100644
--- a/goffice/utils/go-glib-extras.h
+++ b/goffice/utils/go-glib-extras.h
@@ -12,7 +12,6 @@ typedef gpointer (*GOMapFunc) (gpointer value);
void go_ptr_array_insert (GPtrArray *array, gpointer value, int index);
GSList *go_hash_keys (GHashTable *hash);
-GSList *go_hash_values (GHashTable *hash);
GSList *go_slist_map (GSList const *list, GOMapFunc map_func);
GSList *go_slist_create (gpointer item1, ...);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]