aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-chatroom-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-02 21:58:06 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-02 21:58:08 +0800
commit3ea940ebbbc219521ce3674a703fe036aebd96bb (patch)
tree20c044c7b2e9d76eae0645ed8a93499d95fb4652 /libempathy/empathy-chatroom-manager.c
parentd8ecfc7dd920283a8e3c15b31a6b04087aef9936 (diff)
downloadgsoc2013-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.
Diffstat (limited to 'libempathy/empathy-chatroom-manager.c')
-rw-r--r--libempathy/empathy-chatroom-manager.c28
1 files changed, 0 insertions, 28 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)