[next] telepathy-glib: TpContact: connection always has CONTACTS iface

Xavier Claessens xclaesse at kemper.freedesktop.org
Wed Dec 26 01:31:39 PST 2012


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

Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Sun Sep  9 13:54:08 2012 +0200

TpContact: connection always has CONTACTS iface

---

 telepathy-glib/contact.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c
index 83de4d8..d2f393b 100644
--- a/telepathy-glib/contact.c
+++ b/telepathy-glib/contact.c
@@ -2892,15 +2892,6 @@ tp_connection_dup_contact_by_id_async (TpConnection *self,
       return;
     }
 
-  if (!tp_proxy_has_interface_by_id (self,
-        TP_IFACE_QUARK_CONNECTION_INTERFACE_CONTACTS))
-    {
-      g_simple_async_report_error_in_idle ((GObject *) self,
-          callback, user_data, TP_DBUS_ERRORS, TP_DBUS_ERROR_NO_INTERFACE,
-          "Obsolete CM does not have the Contacts interface");
-      return;
-    }
-
   result = g_simple_async_result_new ((GObject *) self, callback, user_data,
       tp_connection_dup_contact_by_id_async);
 
@@ -3039,15 +3030,6 @@ tp_connection_upgrade_contacts_async (TpConnection *self,
       return;
     }
 
-  if (!tp_proxy_has_interface_by_id (self,
-        TP_IFACE_QUARK_CONNECTION_INTERFACE_CONTACTS))
-    {
-      g_simple_async_report_error_in_idle ((GObject *) self,
-          callback, user_data, TP_DBUS_ERRORS, TP_DBUS_ERROR_NO_INTERFACE,
-          "Obsolete CM does not have the Contacts interface");
-      return;
-    }
-
   handles = g_array_sized_new (FALSE, FALSE, sizeof (TpHandle), n_contacts);
   contacts_array = g_ptr_array_new_full (n_contacts, g_object_unref);
   for (i = 0; i < n_contacts; i++)



More information about the telepathy-commits mailing list