[next] telepathy-glib: remove tp_account_get_parameters()
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Thu Feb 27 06:07:34 PST 2014
Module: telepathy-glib
Branch: next
Commit: 66e3edca998e24fae58971ff2a2a20301a840a79
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=66e3edca998e24fae58971ff2a2a20301a840a79
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Tue Feb 18 14:42:58 2014 +0100
remove tp_account_get_parameters()
---
.../telepathy-glib/telepathy-glib-sections.txt | 1 -
telepathy-glib/account.c | 30 --------------------
telepathy-glib/account.h | 1 -
tests/dbus/account.c | 2 --
4 files changed, 34 deletions(-)
diff --git a/docs/reference/telepathy-glib/telepathy-glib-sections.txt b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
index f8e3127..260e723 100644
--- a/docs/reference/telepathy-glib/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
@@ -4018,7 +4018,6 @@ tp_account_get_changing_presence
tp_account_get_current_presence
tp_account_get_requested_presence
tp_account_get_automatic_presence
-tp_account_get_parameters
tp_account_dup_parameters_vardict
tp_account_get_nickname
tp_account_set_nickname_async
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index 4d937bb..baf1e2b 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -2371,36 +2371,6 @@ tp_account_get_icon_name (TpAccount *account)
}
/**
- * tp_account_get_parameters:
- * @account: a #TpAccount
- *
- * Returns the parameters of the account, in a hash table where each string
- * is the parameter name (account, password, require-encryption etc.), and
- * each value is a #GValue. Using the tp_asv_get family of functions
- * (tp_asv_get_uint32(), tp_asv_get_string() etc.) to access the parameters is
- * recommended.
- *
- * The allowed parameters depend on the connection manager, and can be found
- * via tp_connection_manager_get_protocol() and
- * tp_connection_manager_protocol_get_param(). Well-known parameters are
- * listed
- * <ulink url="http://telepathy.freedesktop.org/spec/im.telepathy1.ConnectionManager.html#im.telepathy1.ConnectionManager.RequestConnection">in
- * the Telepathy D-Bus Interface Specification</ulink>.
- *
- * Returns: (transfer none) (element-type utf8 GObject.Value): the hash table of
- * parameters on @account
- *
- * Since: 0.9.0
- */
-const GHashTable *
-tp_account_get_parameters (TpAccount *account)
-{
- g_return_val_if_fail (TP_IS_ACCOUNT (account), NULL);
-
- return account->priv->parameters;
-}
-
-/**
* tp_account_dup_parameters_vardict:
* @account: a #TpAccount
*
diff --git a/telepathy-glib/account.h b/telepathy-glib/account.h
index 9c77dc4..d061240 100644
--- a/telepathy-glib/account.h
+++ b/telepathy-glib/account.h
@@ -202,7 +202,6 @@ TpConnectionPresenceType tp_account_get_requested_presence (
TpConnectionPresenceType tp_account_get_automatic_presence (
TpAccount *self, gchar **status, gchar **status_message);
-const GHashTable *tp_account_get_parameters (TpAccount *account);
_TP_AVAILABLE_IN_0_18
GVariant *tp_account_dup_parameters_vardict (TpAccount *account);
diff --git a/tests/dbus/account.c b/tests/dbus/account.c
index 4145d43..48b0804 100644
--- a/tests/dbus/account.c
+++ b/tests/dbus/account.c
@@ -394,8 +394,6 @@ test_prepare_success (Test *test,
assert_strprop (test->account, "display-name", "Fake Account");
g_assert_cmpstr (tp_account_get_nickname (test->account), ==, "badger");
assert_strprop (test->account, "nickname", "badger");
- g_assert_cmpuint (tp_asv_size (tp_account_get_parameters (test->account)),
- ==, 0);
variant = tp_account_dup_parameters_vardict (test->account);
g_assert_cmpstr (g_variant_get_type_string (variant), ==, "a{sv}");
g_assert_cmpuint (g_variant_n_children (variant), ==, 0);
More information about the telepathy-commits
mailing list