From 3ea940ebbbc219521ce3674a703fe036aebd96bb Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 2 Dec 2010 14:58:06 +0100 Subject: remove empathy_chatroom_manager_get_count() We don't use it any more. --- libempathy/empathy-chatroom-manager.c | 28 ---------------------------- libempathy/empathy-chatroom-manager.h | 3 --- 2 files changed, 31 deletions(-) diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c index 184031ff7..b2576838a 100644 --- a/libempathy/empathy-chatroom-manager.c +++ b/libempathy/empathy-chatroom-manager.c @@ -705,34 +705,6 @@ empathy_chatroom_manager_get_chatrooms (EmpathyChatroomManager *manager, return chatrooms; } -guint -empathy_chatroom_manager_get_count (EmpathyChatroomManager *manager, - TpAccount *account) -{ - EmpathyChatroomManagerPriv *priv; - GList *l; - guint count = 0; - - g_return_val_if_fail (EMPATHY_IS_CHATROOM_MANAGER (manager), 0); - - priv = GET_PRIV (manager); - - if (!account) - return g_list_length (priv->chatrooms); - - for (l = priv->chatrooms; l; l = l->next) - { - EmpathyChatroom *chatroom; - - chatroom = l->data; - - if (account == empathy_chatroom_get_account (chatroom)) - count++; - } - - return count; -} - static void chatroom_manager_chat_destroyed_cb (EmpathyTpChat *chat, gpointer manager) diff --git a/libempathy/empathy-chatroom-manager.h b/libempathy/empathy-chatroom-manager.h index e89c2bf8b..653c6d945 100644 --- a/libempathy/empathy-chatroom-manager.h +++ b/libempathy/empathy-chatroom-manager.h @@ -79,9 +79,6 @@ EmpathyChatroom * empathy_chatroom_manager_ensure_chatroom ( GList * empathy_chatroom_manager_get_chatrooms (EmpathyChatroomManager *manager, TpAccount *account); -guint empathy_chatroom_manager_get_count (EmpathyChatroomManager *manager, - TpAccount *account); - void empathy_chatroom_manager_chat_handled (EmpathyChatroomManager *self, EmpathyTpChat *chat, TpAccount *account); -- cgit v1.2.3