]> git.0d.be Git - empathy.git/commitdiff
remove empathy_tp_chat_join()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 1 May 2012 10:58:52 +0000 (12:58 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 May 2012 08:53:34 +0000 (10:53 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=675229

libempathy/empathy-tp-chat.c
libempathy/empathy-tp-chat.h

index 4069da48411b55ea9b09c87a6c2ee61843b24f52..9d86980962c7fbd7490dd92164a7a9b2ef5d5f23 100644 (file)
@@ -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)
index 5aa949ba2e65193e8718754ec2e9ab0eff3677e5..44f6a240e0858990bcd3cd7b28bb3fa4871c706c 100644 (file)
@@ -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);