diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-01-08 16:33:03 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-01-08 16:33:03 +0000 |
commit | 364dd87bd7cdffc51c9178767883e5e0b90bb8c0 (patch) | |
tree | c87d5c496ae2ead8fc0fff867103de9c20e0f58e | |
parent | c6a321803f04fb82e4d9b1844e4fbfac5682d011 (diff) |
Remove key-value list functions (not actually used anywhere)
-rw-r--r-- | lib/helpers.c | 37 | ||||
-rw-r--r-- | lib/telepathy-glib/helpers.h | 8 |
2 files changed, 0 insertions, 45 deletions
diff --git a/lib/helpers.c b/lib/helpers.c index e79098605..a6db950a0 100644 --- a/lib/helpers.c +++ b/lib/helpers.c @@ -63,40 +63,3 @@ tp_get_bus_proxy () return bus_proxy; } - -static void _list_builder (gpointer key, gpointer value, gpointer data); - -GSList * -tp_hash_to_key_value_list (GHashTable *hash) -{ - GSList *ret = NULL; - - g_hash_table_foreach (hash, _list_builder, &ret); - - return ret; -} - -void -tp_key_value_list_free (GSList *list) -{ - GSList *iter; - - for (iter = list; iter; iter = g_slist_next(iter)) - { - g_free (iter->data); - } - - g_slist_free (list); -} - -static void _list_builder (gpointer key, gpointer value, gpointer data) -{ - GSList **list = (GSList **) data; - TpKeyValue *kv = g_new0 (TpKeyValue, 1); - - kv->key = key; - kv->value = value; - - *list = g_slist_prepend (*list, kv); -} - diff --git a/lib/telepathy-glib/helpers.h b/lib/telepathy-glib/helpers.h index e5e31a901..6756c4708 100644 --- a/lib/telepathy-glib/helpers.h +++ b/lib/telepathy-glib/helpers.h @@ -27,16 +27,8 @@ G_BEGIN_DECLS -typedef struct -{ - gpointer key; - gpointer value; -} TpKeyValue; - DBusGConnection * tp_get_bus (); DBusGProxy * tp_get_bus_proxy (); -GSList *tp_hash_to_key_value_list (GHashTable *hash); -void tp_key_value_list_free (GSList *list); G_END_DECLS |