diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-12-02 21:58:06 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-12-02 21:58:08 +0800 |
commit | 3ea940ebbbc219521ce3674a703fe036aebd96bb (patch) | |
tree | 20c044c7b2e9d76eae0645ed8a93499d95fb4652 | |
parent | d8ecfc7dd920283a8e3c15b31a6b04087aef9936 (diff) | |
download | gsoc2013-empathy-3ea940ebbbc219521ce3674a703fe036aebd96bb.tar gsoc2013-empathy-3ea940ebbbc219521ce3674a703fe036aebd96bb.tar.gz gsoc2013-empathy-3ea940ebbbc219521ce3674a703fe036aebd96bb.tar.bz2 gsoc2013-empathy-3ea940ebbbc219521ce3674a703fe036aebd96bb.tar.lz gsoc2013-empathy-3ea940ebbbc219521ce3674a703fe036aebd96bb.tar.xz gsoc2013-empathy-3ea940ebbbc219521ce3674a703fe036aebd96bb.tar.zst gsoc2013-empathy-3ea940ebbbc219521ce3674a703fe036aebd96bb.zip |
remove empathy_chatroom_manager_get_count()
We don't use it any more.
-rw-r--r-- | libempathy/empathy-chatroom-manager.c | 28 | ||||
-rw-r--r-- | 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 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); |