[empathy] rename unused empathy_chatroom_manager_chat_handled()



commit 922b5acaf43a0653447622fc022d37757357dc36
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Dec 2 16:07:05 2010 +0100

    rename unused empathy_chatroom_manager_chat_handled()

 libempathy/empathy-chatroom-manager.c |   33 ---------------------------------
 libempathy/empathy-chatroom-manager.h |    4 ----
 2 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 109f428..edf6d6c 100644
--- a/libempathy/empathy-chatroom-manager.c
+++ b/libempathy/empathy-chatroom-manager.c
@@ -792,39 +792,6 @@ chatroom_manager_chat_destroyed_cb (EmpathyTpChat *chat,
     }
 }
 
-/* Called by EmpathyChatManager when we are handling a new group chat */
-void
-empathy_chatroom_manager_chat_handled (EmpathyChatroomManager *self,
-    EmpathyTpChat *chat,
-    TpAccount *account)
-{
-  EmpathyChatroom *chatroom;
-  const gchar *roomname;
-
-  roomname = empathy_tp_chat_get_id (chat);
-
-  chatroom = empathy_chatroom_manager_find (self, account, roomname);
-
-  if (chatroom == NULL)
-    {
-      chatroom = empathy_chatroom_new_full (account, roomname, roomname,
-        FALSE);
-      empathy_chatroom_set_tp_chat (chatroom, chat);
-      empathy_chatroom_manager_add (self, chatroom);
-      g_object_unref (chatroom);
-    }
-  else
-    {
-        empathy_chatroom_set_tp_chat (chatroom, chat);
-    }
-
-  /* A TpChat is always destroyed as it only gets unreffed after the channel
-   * has been invalidated in the dispatcher..  */
-  g_signal_connect (chat, "destroy",
-    G_CALLBACK (chatroom_manager_chat_destroyed_cb),
-    self);
-}
-
 static void
 observe_channels_cb (TpSimpleObserver *observer,
     TpAccount *account,
diff --git a/libempathy/empathy-chatroom-manager.h b/libempathy/empathy-chatroom-manager.h
index 653c6d9..5afb2b4 100644
--- a/libempathy/empathy-chatroom-manager.h
+++ b/libempathy/empathy-chatroom-manager.h
@@ -79,10 +79,6 @@ EmpathyChatroom * empathy_chatroom_manager_ensure_chatroom (
 GList * empathy_chatroom_manager_get_chatrooms (EmpathyChatroomManager *manager,
     TpAccount *account);
 
-void empathy_chatroom_manager_chat_handled (EmpathyChatroomManager *self,
-    EmpathyTpChat *chat,
-    TpAccount *account);
-
 G_END_DECLS
 
 #endif /* __EMPATHY_CHATROOM_MANAGER_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]