From 5fb6f5a589ad01b59537adee397fcaea1c43b418 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 15 May 2014 17:11:39 +0200 Subject: [PATCH 08/10] 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 -- 1.9.0