]> git.0d.be Git - empathy.git/commitdiff
Removed now useless _get_top_individuals function in the model
authorLaurent Contzen <lcontzen@gmail.com>
Tue, 7 Aug 2012 14:44:14 +0000 (16:44 +0200)
committerLaurent Contzen <lcontzen@gmail.com>
Tue, 7 Aug 2012 14:44:14 +0000 (16:44 +0200)
libempathy-gtk/empathy-roster-model-manager.c
libempathy-gtk/empathy-roster-model.c
libempathy-gtk/empathy-roster-model.h

index a7d952af7aeb4fed8827b38b5755d1786e38f0ad..bf0f9064af4b0d985bd20e3e06c80df5a80e5cad 100644 (file)
@@ -399,19 +399,10 @@ empathy_roster_model_manager_get_groups_for_individual (
   return groups_list;
 }
 
-static GList *
-empathy_roster_model_manager_get_top_individuals (EmpathyRosterModel *model)
-{
-  EmpathyRosterModelManager *self = EMPATHY_ROSTER_MODEL_MANAGER (model);
-
-  return empathy_individual_manager_get_top_individuals (self->priv->manager);
-}
-
 static void
 roster_model_iface_init (EmpathyRosterModelInterface *iface)
 {
   iface->get_individuals = empathy_roster_model_manager_get_individuals;
   iface->get_groups_for_individual =
     empathy_roster_model_manager_get_groups_for_individual;
-  iface->get_top_individuals = empathy_roster_model_manager_get_top_individuals;
 }
index 31cc4251f5b3844d77cfec3a7ed3d4c9a73b8119..269aba243311440d9b1daf56e03d77b442fef729 100644 (file)
@@ -135,24 +135,3 @@ empathy_roster_model_get_groups_for_individual (EmpathyRosterModel *self,
 
   return (* iface->get_groups_for_individual) (self, individual);
 }
-
-/**
- * empathy_roster_model_get_top_individuals:
- * @self: a #EmpathyRosterModel
- *
- * Returns a list of the top_individuals.
- *
- * Returns: (transfer none): a #GList of #FolksIndividual
- */
-GList *
-empathy_roster_model_get_top_individuals (EmpathyRosterModel *self)
-{
-  EmpathyRosterModelInterface *iface;
-
-  g_return_val_if_fail (EMPATHY_IS_ROSTER_MODEL (self), NULL);
-
-  iface = EMPATHY_ROSTER_MODEL_GET_IFACE (self);
-  g_return_val_if_fail (iface->get_top_individuals != NULL, NULL);
-
-  return (* iface->get_top_individuals) (self);
-}
index 71b204231c35a0efc985915604847fbcc88c3d8f..dd8288eca5d6309c9464587652134d0b4d459236 100644 (file)
@@ -24,8 +24,6 @@
 
 #include <folks/folks.h>
 
-#include <libempathy-gtk/empathy-roster-contact.h>
-
 G_BEGIN_DECLS
 
 #define EMPATHY_ROSTER_MODEL_GROUP_TOP_GROUP _("Top Contacts")
@@ -44,7 +42,6 @@ struct _EmpathyRosterModelInterface
   GList * (* get_individuals) (EmpathyRosterModel *self);
   GList * (*get_groups_for_individual) (EmpathyRosterModel *self,
       FolksIndividual *individual);
-  GList * (*get_top_individuals) (EmpathyRosterModel *self);
 };
 
 GType empathy_roster_model_get_type (void);
@@ -84,8 +81,6 @@ GList * empathy_roster_model_get_groups_for_individual (
     EmpathyRosterModel *self,
     FolksIndividual *individual);
 
-GList * empathy_roster_model_get_top_individuals (EmpathyRosterModel *self);
-
 G_END_DECLS
 
 #endif /* #ifndef __EMPATHY_ROSTER_MODEL_H__*/