[next] telepathy-glib: remove tp_tests_add_channel_to_ptr_array

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Wed Jan 29 03:02:20 PST 2014


Module: telepathy-glib
Branch: next
Commit: ac9bd11acb6f5f5f028b56ae57244afcd24ee02a
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=ac9bd11acb6f5f5f028b56ae57244afcd24ee02a

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Fri Jan 24 11:43:22 2014 +0100

remove tp_tests_add_channel_to_ptr_array

Not used any more.

---

 tests/lib/util.c |   22 ----------------------
 tests/lib/util.h |    3 ---
 2 files changed, 25 deletions(-)

diff --git a/tests/lib/util.c b/tests/lib/util.c
index 2f902ea..cd0072b 100644
--- a/tests/lib/util.c
+++ b/tests/lib/util.c
@@ -699,25 +699,3 @@ tp_tests_dup_channel_props_asv (TpChannel *channel)
 
   return asv;
 }
-
-void
-tp_tests_add_channel_to_ptr_array (GPtrArray *arr,
-    TpChannel *channel)
-{
-  GValueArray *tmp;
-  GHashTable *asv;
-
-  g_assert (arr != NULL);
-  g_assert (channel != NULL);
-
-  asv = tp_tests_dup_channel_props_asv (channel);
-
-  tmp = tp_value_array_build (2,
-      DBUS_TYPE_G_OBJECT_PATH, tp_proxy_get_object_path (channel),
-      TP_HASH_TYPE_STRING_VARIANT_MAP, asv,
-      G_TYPE_INVALID);
-
-  g_ptr_array_add (arr, tmp);
-
-  g_hash_table_unref (asv);
-}
diff --git a/tests/lib/util.h b/tests/lib/util.h
index 05ded50..53f9ec6 100644
--- a/tests/lib/util.h
+++ b/tests/lib/util.h
@@ -106,9 +106,6 @@ TpChannel *tp_tests_channel_new_from_properties (TpConnection *conn,
     const GHashTable *immutable_properties,
     GError **error);
 
-void tp_tests_add_channel_to_ptr_array (GPtrArray *arr,
-    TpChannel *channel);
-
 GHashTable * tp_tests_dup_channel_props_asv (TpChannel *channel);
 
 #endif /* #ifndef __TP_TESTS_LIB_UTIL_H__ */



More information about the telepathy-commits mailing list