[empathy] Do not use empathy_contact_equal anymore, pointer comparaison is guaranteed to be enough.



commit 56337470e94a98a963e978d8b8f97f311cc817b7
Author: Xavier Claessens <xclaesse gmail com>
Date:   Tue Feb 17 14:46:17 2009 +0100

    Do not use empathy_contact_equal anymore, pointer comparaison is guaranteed to be enough.
---
 libempathy-gtk/empathy-theme-boxes.c |    4 ++--
 libempathy/empathy-contact.h         |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libempathy-gtk/empathy-theme-boxes.c b/libempathy-gtk/empathy-theme-boxes.c
index 0561eca..5b435f1 100644
--- a/libempathy-gtk/empathy-theme-boxes.c
+++ b/libempathy-gtk/empathy-theme-boxes.c
@@ -208,9 +208,9 @@ theme_boxes_maybe_append_header (EmpathyThemeBoxes *theme,
 	DEBUG ("Maybe add fancy header");
 
 	/* Only insert a header if the previously inserted block is not the same
-	 * as this one. This catches all the different cases:
+	 * as this one.
 	 */
-	if (last_contact && empathy_contact_equal (last_contact, contact)) {
+	if (last_contact == contact) {
 		return;
 	}
 
diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h
index 3c8a788..8b89b39 100644
--- a/libempathy/empathy-contact.h
+++ b/libempathy/empathy-contact.h
@@ -98,7 +98,6 @@ gboolean empathy_contact_is_online (EmpathyContact *contact);
 const gchar * empathy_contact_get_status (EmpathyContact *contact);
 gboolean empathy_contact_can_voip (EmpathyContact *contact);
 gboolean empathy_contact_can_send_files (EmpathyContact *contact);
-gboolean empathy_contact_equal (gconstpointer v1, gconstpointer v2);
 guint empathy_contact_hash (gconstpointer key);
 
 void empathy_contact_load_avatar_data (EmpathyContact *contact,



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