aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-chatroom-manager.c33
-rw-r--r--libempathy/empathy-chatroom-manager.h4
2 files changed, 0 insertions, 37 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 109f42839..edf6d6ced 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 653c6d945..5afb2b474 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__ */