[telepathy-glib/master] account-manager: remove _get_account_for_connection

Jonny Lamb jonny.lamb at collabora.co.uk
Mon Sep 21 08:13:58 PDT 2009


Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
 docs/reference/telepathy-glib-sections.txt |    1 -
 telepathy-glib/account-manager.c           |   36 ----------------------------
 telepathy-glib/account-manager.h           |    3 --
 3 files changed, 0 insertions(+), 40 deletions(-)

diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt
index eebeecd..dd43f7b 100644
--- a/docs/reference/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib-sections.txt
@@ -3079,7 +3079,6 @@ tp_account_manager_create_account_async
 tp_account_manager_create_account_finish
 tp_account_manager_ensure_account
 tp_account_manager_get_account
-tp_account_manager_get_account_for_connection
 tp_account_manager_get_accounts
 tp_account_manager_get_global_presence
 tp_account_manager_get_requested_global_presence
diff --git a/telepathy-glib/account-manager.c b/telepathy-glib/account-manager.c
index 6f82e26..6f94f13 100644
--- a/telepathy-glib/account-manager.c
+++ b/telepathy-glib/account-manager.c
@@ -1027,42 +1027,6 @@ tp_account_manager_ensure_account (TpAccountManager *manager,
 }
 
 /**
- * tp_account_manager_get_account_for_connection:
- * @manager: a #TpAccountManager
- * @connection: a #TpConnection
- *
- * Looks up what #TpAccount @connection belongs to, and returns it. If
- * no appropriate #TpAccount is found, %NULL is returned.
- *
- * Returns: the #TpAccount that @connection belongs to, otherwise %NULL
- *
- * Since: 0.7.UNRELEASED
- */
-TpAccount *
-tp_account_manager_get_account_for_connection (TpAccountManager *manager,
-    TpConnection *connection)
-{
-  TpAccountManagerPrivate *priv;
-  GHashTableIter iter;
-  gpointer value;
-
-  g_return_val_if_fail (TP_IS_ACCOUNT_MANAGER (manager), 0);
-
-  priv = manager->priv;
-
-  g_hash_table_iter_init (&iter, priv->accounts);
-  while (g_hash_table_iter_next (&iter, NULL, &value))
-    {
-      TpAccount *account = TP_ACCOUNT (value);
-
-      if (connection == tp_account_get_connection (account))
-        return account;
-    }
-
-  return NULL;
-}
-
-/**
  * tp_account_manager_get_accounts:
  * @manager: a #TpAccountManager
  *
diff --git a/telepathy-glib/account-manager.h b/telepathy-glib/account-manager.h
index 8d878aa..a610ebe 100644
--- a/telepathy-glib/account-manager.h
+++ b/telepathy-glib/account-manager.h
@@ -75,9 +75,6 @@ TpAccountManager *tp_account_manager_dup (void);
 
 void tp_account_manager_init_known_interfaces (void);
 
-TpAccount *tp_account_manager_get_account_for_connection (
-    TpAccountManager *manager, TpConnection *connection);
-
 TpAccount *tp_account_manager_ensure_account (TpAccountManager *manager,
     const gchar *path);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list