From 4e5ccb224018c01ba381259cbfe9c54e78082d3f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 1 May 2012 12:58:52 +0200 Subject: remove empathy_tp_chat_join() https://bugzilla.gnome.org/show_bug.cgi?id=675229 --- libempathy/empathy-tp-chat.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 4069da484..9d8698096 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -1458,38 +1458,6 @@ empathy_tp_chat_leave (EmpathyTpChat *self, message, tp_channel_leave_async_cb, self); } -static void -add_members_cb (TpChannel *proxy, - const GError *error, - gpointer user_data, - GObject *weak_object) -{ - EmpathyTpChat *self = (EmpathyTpChat *) weak_object; - - if (error != NULL) - { - DEBUG ("Failed to join chat (%s): %s", - tp_channel_get_identifier ((TpChannel *) self), error->message); - } -} - -void -empathy_tp_chat_join (EmpathyTpChat *self) -{ - TpHandle self_handle; - GArray *members; - - self_handle = tp_channel_group_get_self_handle ((TpChannel *) self); - - members = g_array_sized_new (FALSE, FALSE, sizeof (TpHandle), 1); - g_array_append_val (members, self_handle); - - tp_cli_channel_interface_group_call_add_members ((TpChannel *) self, -1, - members, "", add_members_cb, NULL, NULL, G_OBJECT (self)); - - g_array_unref (members); -} - gboolean empathy_tp_chat_is_invited (EmpathyTpChat *self, TpHandle *inviter) -- cgit v1.2.3