[empathy] remove empathy_tp_chat_join()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] remove empathy_tp_chat_join()
- Date: Thu, 3 May 2012 09:46:41 +0000 (UTC)
commit 4e5ccb224018c01ba381259cbfe9c54e78082d3f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue May 1 12:58:52 2012 +0200
remove empathy_tp_chat_join()
https://bugzilla.gnome.org/show_bug.cgi?id=675229
libempathy/empathy-tp-chat.c | 32 --------------------------------
libempathy/empathy-tp-chat.h | 1 -
2 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 4069da4..9d86980 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)
diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h
index 5aa949b..44f6a24 100644
--- a/libempathy/empathy-tp-chat.h
+++ b/libempathy/empathy-tp-chat.h
@@ -94,7 +94,6 @@ gboolean empathy_tp_chat_can_add_contact (EmpathyTpChat *self);
void empathy_tp_chat_leave (EmpathyTpChat *chat,
const gchar *message);
-void empathy_tp_chat_join (EmpathyTpChat *chat);
gboolean empathy_tp_chat_is_invited (EmpathyTpChat *chat,
TpHandle *inviter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]