[empathy] Removed now useless _get_top_individuals function in the model



commit 7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878
Author: Laurent Contzen <lcontzen gmail com>
Date:   Tue Aug 7 16:44:14 2012 +0200

    Removed now useless _get_top_individuals function in the model

 libempathy-gtk/empathy-roster-model-manager.c |    9 ---------
 libempathy-gtk/empathy-roster-model.c         |   21 ---------------------
 libempathy-gtk/empathy-roster-model.h         |    5 -----
 3 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/libempathy-gtk/empathy-roster-model-manager.c b/libempathy-gtk/empathy-roster-model-manager.c
index a7d952a..bf0f906 100644
--- a/libempathy-gtk/empathy-roster-model-manager.c
+++ b/libempathy-gtk/empathy-roster-model-manager.c
@@ -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;
 }
diff --git a/libempathy-gtk/empathy-roster-model.c b/libempathy-gtk/empathy-roster-model.c
index 31cc425..269aba2 100644
--- a/libempathy-gtk/empathy-roster-model.c
+++ b/libempathy-gtk/empathy-roster-model.c
@@ -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);
-}
diff --git a/libempathy-gtk/empathy-roster-model.h b/libempathy-gtk/empathy-roster-model.h
index 71b2042..dd8288e 100644
--- a/libempathy-gtk/empathy-roster-model.h
+++ b/libempathy-gtk/empathy-roster-model.h
@@ -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__*/



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