[next] telepathy-glib: remove tp_handle_set_new_from_array()

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Fri May 16 06:04:56 PDT 2014


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

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu May 15 17:11:39 2014 +0200

remove tp_handle_set_new_from_array()

It's no longer used by CMs and tp-glib.

---

 .../telepathy-glib/telepathy-glib-sections.txt     |    1 -
 telepathy-glib/handle-repo.h                       |    2 --
 telepathy-glib/handle-set.c                        |   23 --------------------
 telepathy-glib/versions/main-1.0.abi               |    1 -
 4 files changed, 27 deletions(-)

diff --git a/docs/reference/telepathy-glib/telepathy-glib-sections.txt b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
index b7ba8fb..9c6dc3a 100644
--- a/docs/reference/telepathy-glib/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
@@ -207,7 +207,6 @@ TP_TYPE_HANDLE_SET
 TpHandleSetMemberFunc
 tp_handle_set_new
 tp_handle_set_new_containing
-tp_handle_set_new_from_array
 tp_handle_set_new_from_intset
 tp_handle_set_new_from_variant
 tp_handle_set_copy
diff --git a/telepathy-glib/handle-repo.h b/telepathy-glib/handle-repo.h
index c2d19d3..3e07143 100644
--- a/telepathy-glib/handle-repo.h
+++ b/telepathy-glib/handle-repo.h
@@ -144,8 +144,6 @@ GArray *tp_handle_set_to_array (const TpHandleSet *set)
   G_GNUC_WARN_UNUSED_RESULT;
 GVariant *tp_handle_set_to_identifier_map (TpHandleSet *self)
     G_GNUC_WARN_UNUSED_RESULT;
-TpHandleSet *tp_handle_set_new_from_array (TpHandleRepoIface *repo,
-    const GArray *array) G_GNUC_WARN_UNUSED_RESULT;
 
 GVariant *tp_handle_set_to_variant (const TpHandleSet *set)
   G_GNUC_WARN_UNUSED_RESULT;
diff --git a/telepathy-glib/handle-set.c b/telepathy-glib/handle-set.c
index c6c9102..81b3234 100644
--- a/telepathy-glib/handle-set.c
+++ b/telepathy-glib/handle-set.c
@@ -77,29 +77,6 @@ tp_handle_set_new (TpHandleRepoIface *repo)
   return set;
 }
 
-/**
- * tp_handle_set_new_from_array: (skip)
- * @repo: #TpHandleRepoIface that holds the handles to be reffed by this set
- * @array: (element-type guint32): array of handles to be referenced by this set
- *
- * Creates a new #TpHandleSet
- *
- * Returns: (transfer full): A new #TpHandleSet
- *
- * Since: 0.11.7
- */
-TpHandleSet *
-tp_handle_set_new_from_array (TpHandleRepoIface *repo,
-    const GArray *array)
-{
-  TpHandleSet *set = tp_handle_set_new (repo);
-  TpIntset *tmp = tp_intset_from_array (array);
-
-  tp_intset_destroy (tp_handle_set_update (set, tmp));
-  tp_intset_destroy (tmp);
-  return set;
-}
-
 static void
 freer (TpHandleSet *set, TpHandle handle, gpointer userdata)
 {
diff --git a/telepathy-glib/versions/main-1.0.abi b/telepathy-glib/versions/main-1.0.abi
index f11d8d3..22ae851 100644
--- a/telepathy-glib/versions/main-1.0.abi
+++ b/telepathy-glib/versions/main-1.0.abi
@@ -880,7 +880,6 @@ tp_handle_set_is_empty
 tp_handle_set_is_member
 tp_handle_set_new
 tp_handle_set_new_containing
-tp_handle_set_new_from_array
 tp_handle_set_new_from_intset
 tp_handle_set_peek
 tp_handle_set_remove



More information about the telepathy-commits mailing list