[empathy] remove empathy_chatroom_manager_get_count()



commit 3ea940ebbbc219521ce3674a703fe036aebd96bb
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Dec 2 14:58:06 2010 +0100

    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, 0 insertions(+), 31 deletions(-)
---
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 184031f..b257683 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 e89c2bf..653c6d9 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);



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