diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-09-09 13:54:08 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-12-26 10:11:01 +0100 |
commit | ad3fde37bf833a75104cafcc75da935fd7e38dd0 (patch) | |
tree | 5a189737f209bc750ee96f6a5c44ebc0d9fa2edd | |
parent | 220662dc6f47a12904d8e42b2e04549252275ea8 (diff) |
TpContact: connection always has CONTACTS iface
-rw-r--r-- | 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 83de4d85c..d2f393bfc 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++) |