summaryrefslogtreecommitdiff
path: root/telepathy-glib/util.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-04-23 13:39:02 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-04-23 13:39:02 +0200
commit032592af28cf29069b2bcf7c33fb0ae560587158 (patch)
treec993bf2f46955ca7e61425bfe4710137e10f8688 /telepathy-glib/util.c
parentc193a39211ffdef8e724c153ae13bf00b31dc7eb (diff)
downloadtelepathy-glib-032592af28cf29069b2bcf7c33fb0ae560587158.tar.gz
Use g_ptr_array_new_full() now that we can depend on glib 2.30
Diffstat (limited to 'telepathy-glib/util.c')
-rw-r--r--telepathy-glib/util.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/telepathy-glib/util.c b/telepathy-glib/util.c
index 3e7ba1af0..038ff6825 100644
--- a/telepathy-glib/util.c
+++ b/telepathy-glib/util.c
@@ -1766,18 +1766,6 @@ _tp_bind_connection_status_to_boolean (GBinding *binding,
return TRUE;
}
-GPtrArray *
-_tp_g_ptr_array_new_full (guint reserved_size,
- GDestroyNotify element_free_func)
-{
- GPtrArray *array;
-
- array = g_ptr_array_sized_new (reserved_size);
- g_ptr_array_set_free_func (array, element_free_func);
-
- return array;
-}
-
/*
* _tp_determine_socket_address_type:
*
@@ -2024,7 +2012,7 @@ _tp_contacts_from_values (GHashTable *table)
if (table == NULL)
return NULL;
- contacts = _tp_g_ptr_array_new_full (g_hash_table_size (table),
+ contacts = g_ptr_array_new_full (g_hash_table_size (table),
g_object_unref);
g_hash_table_iter_init (&iter, table);