aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-14 17:01:13 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-18 16:31:10 +0800
commit7a5547dfa849ca3df4be23e83643c91d9069cabf (patch)
treeaa1a59506e505e8a4505058ff9182dffaa27ddfd
parent4356553d231eba93e566913f926387213cb88036 (diff)
downloadgsoc2013-empathy-7a5547dfa849ca3df4be23e83643c91d9069cabf.tar
gsoc2013-empathy-7a5547dfa849ca3df4be23e83643c91d9069cabf.tar.gz
gsoc2013-empathy-7a5547dfa849ca3df4be23e83643c91d9069cabf.tar.bz2
gsoc2013-empathy-7a5547dfa849ca3df4be23e83643c91d9069cabf.tar.lz
gsoc2013-empathy-7a5547dfa849ca3df4be23e83643c91d9069cabf.tar.xz
gsoc2013-empathy-7a5547dfa849ca3df4be23e83643c91d9069cabf.tar.zst
gsoc2013-empathy-7a5547dfa849ca3df4be23e83643c91d9069cabf.zip
Revert "individual-manager: comment out interaction code"
This reverts commit 7f8fe5091b7a980133c0c3d1285cb718f8772142. https://bugzilla.gnome.org/show_bug.cgi?id=677940
-rw-r--r--libempathy/empathy-individual-manager.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 73a8ed394..e80e13224 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -132,11 +132,8 @@ compute_popularity (FolksIndividual *individual)
{
/* TODO: we should have a better heuristic using the last time we interacted
* with the contact as well. */
-#if 0
return folks_interaction_details_get_im_interaction_count (
FOLKS_INTERACTION_DETAILS (individual));
-#endif
- return 0;
}
static void
@@ -216,7 +213,6 @@ compare_individual_by_pop (gconstpointer a,
return pop_b - pop_a;
}
-#if 0
static void
individual_notify_im_interaction_count (FolksIndividual *individual,
GParamSpec *pspec,
@@ -227,7 +223,6 @@ individual_notify_im_interaction_count (FolksIndividual *individual,
g_sequence_sort (priv->individuals_pop, compare_individual_by_pop, NULL);
check_top_individuals (self);
}
-#endif
static void
add_individual (EmpathyIndividualManager *self, FolksIndividual *individual)
@@ -246,10 +241,8 @@ add_individual (EmpathyIndividualManager *self, FolksIndividual *individual)
G_CALLBACK (individual_group_changed_cb), self);
g_signal_connect (individual, "notify::is-favourite",
G_CALLBACK (individual_notify_is_favourite_cb), self);
-#if 0
g_signal_connect (individual, "notify::im-interaction-count",
G_CALLBACK (individual_notify_im_interaction_count), self);
-#endif
}
static void
@@ -270,10 +263,8 @@ remove_individual (EmpathyIndividualManager *self, FolksIndividual *individual)
individual_group_changed_cb, self);
g_signal_handlers_disconnect_by_func (individual,
individual_notify_is_favourite_cb, self);
-#if 0
g_signal_handlers_disconnect_by_func (individual,
individual_notify_im_interaction_count, self);
-#endif
g_hash_table_remove (priv->individuals, folks_individual_get_id (individual));
}