]> git.0d.be Git - empathy.git/commitdiff
Always use fake groups (#614375)
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 31 Mar 2010 08:49:01 +0000 (10:49 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 31 Mar 2010 08:49:01 +0000 (10:49 +0200)
There is no reason to use them when favourite contacts are enabled any more.

libempathy-gtk/empathy-contact-list-store.c

index 6b35b082440ab1835f2f35578828a1eb4bec67b7..4ff13827910462f01fe119ff02b5214fd09bd294 100644 (file)
@@ -1060,7 +1060,6 @@ contact_list_store_add_contact (EmpathyContactListStore *store,
        tp_connection_parse_object_path (connection, &protocol_name, NULL);
 
        if (!groups) {
-#if HAVE_FAVOURITE_CONTACTS
                GtkTreeIter iter_group;
 
                if (!tp_strdiff (protocol_name, "local-xmpp")) {
@@ -1076,28 +1075,6 @@ contact_list_store_add_contact (EmpathyContactListStore *store,
 
                gtk_tree_store_insert_after (GTK_TREE_STORE (store), &iter,
                                             &iter_group, NULL);
-#else
-               /* FIXME: remove this in 2.31.x */
-               /* If no groups just add it at the top level. */
-               GtkTreeModel *model = GTK_TREE_MODEL (store);
-
-               if (gtk_tree_model_get_iter_first (model, &iter)) do {
-                       EmpathyContact *c;
-
-                       gtk_tree_model_get (model, &iter,
-                               EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &c,
-                               -1);
-
-                       if (c == contact) {
-                               g_object_unref (c);
-                               return;
-                       }
-                       if (c != NULL)
-                               g_object_unref (c);
-               } while (gtk_tree_model_iter_next (model, &iter));
-
-               gtk_tree_store_append (GTK_TREE_STORE (store), &iter, NULL);
-#endif
 
                add_contact_to_store (GTK_TREE_STORE (store), &iter, contact, flags);
        }