[telepathy-glib/master] account: removed _is_just_connected

Jonny Lamb jonny.lamb at collabora.co.uk
Thu Sep 24 06:30:12 PDT 2009


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

diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt
index f486fdf..d8420e7 100644
--- a/docs/reference/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib-sections.txt
@@ -2989,7 +2989,6 @@ TpAccountClass
 tp_account_new
 tp_account_init_known_interfaces
 tp_account_parse_object_path
-tp_account_is_just_connected
 tp_account_get_connection
 tp_account_ensure_connection
 tp_account_get_display_name
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index c5dc4ae..8e7be33 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -1413,32 +1413,6 @@ _tp_account_got_all_cb (TpProxy *proxy,
 }
 
 /**
- * tp_account_is_just_connected:
- * @account: a #TpAccount
- *
- * Returns whether @account has connected in the last ten seconds. This
- * is useful for determining whether the account has only just come online, or
- * whether its status has simply changed.
- *
- * Returns: whether @account has only just connected
- *
- * Since: 0.7.UNRELEASED
- */
-gboolean
-tp_account_is_just_connected (TpAccount *account)
-{
-  TpAccountPrivate *priv = account->priv;
-  GTimeVal val;
-
-  if (priv->connection_status != TP_CONNECTION_STATUS_CONNECTED)
-    return FALSE;
-
-  g_get_current_time (&val);
-
-  return (val.tv_sec - priv->connect_time) < 10;
-}
-
-/**
  * tp_account_get_connection:
  * @account: a #TpAccount
  *
diff --git a/telepathy-glib/account.h b/telepathy-glib/account.h
index e6ac000..00d962f 100644
--- a/telepathy-glib/account.h
+++ b/telepathy-glib/account.h
@@ -79,8 +79,6 @@ gboolean tp_account_parse_object_path (const gchar *object_path,
 
 void tp_account_init_known_interfaces (void);
 
-gboolean tp_account_is_just_connected (TpAccount *account);
-
 TpConnection *tp_account_get_connection (TpAccount *account);
 
 TpConnection *tp_account_ensure_connection (TpAccount *account,
-- 
1.5.6.5




More information about the telepathy-commits mailing list