diff options
author | Laurent Contzen <lcontzen@gmail.com> | 2012-08-07 22:44:14 +0800 |
---|---|---|
committer | Laurent Contzen <lcontzen@gmail.com> | 2012-08-07 22:44:14 +0800 |
commit | 7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878 (patch) | |
tree | 7f32949ca77694a1ca31f524956590511b1f4abb | |
parent | 44472802c9c232f7ab6639af2e0a88b090016671 (diff) | |
download | gsoc2013-empathy-7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878.tar gsoc2013-empathy-7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878.tar.gz gsoc2013-empathy-7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878.tar.bz2 gsoc2013-empathy-7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878.tar.lz gsoc2013-empathy-7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878.tar.xz gsoc2013-empathy-7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878.tar.zst gsoc2013-empathy-7b5a073c39fbd8ed38cceb54ecb8f7d60dd45878.zip |
Removed now useless _get_top_individuals function in the model
-rw-r--r-- | libempathy-gtk/empathy-roster-model-manager.c | 9 | ||||
-rw-r--r-- | libempathy-gtk/empathy-roster-model.c | 21 | ||||
-rw-r--r-- | 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 a7d952af7..bf0f9064a 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 31cc4251f..269aba243 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 71b204231..dd8288eca 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__*/ |