[empathy/mc5: 184/483] Remove empathy_account_hash
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5: 184/483] Remove empathy_account_hash
- Date: Fri, 21 Aug 2009 17:14:53 +0000 (UTC)
commit a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Wed Jul 29 20:20:57 2009 +0200
Remove empathy_account_hash
libempathy/empathy-utils.c | 8 --------
libempathy/empathy-utils.h | 1 -
src/empathy-main-window.c | 4 ++--
3 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index fe54ce8..1e1377a 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -227,14 +227,6 @@ empathy_xml_node_find_child_prop_value (xmlNodePtr node,
return found;
}
-guint
-empathy_account_hash (gconstpointer key)
-{
- g_return_val_if_fail (EMPATHY_IS_ACCOUNT (key), 0);
-
- return g_str_hash (empathy_account_get_unique_name (EMPATHY_ACCOUNT (key)));
-}
-
gboolean
empathy_account_equal (gconstpointer a,
gconstpointer b)
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index 59ea154..3ab4077 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -62,7 +62,6 @@ xmlNodePtr empathy_xml_node_find_child_prop_value (xmlNodePtr node,
const gchar *prop_value);
/* Others */
-guint empathy_account_hash (gconstpointer key);
gboolean empathy_account_equal (gconstpointer a,
gconstpointer b);
const gchar * empathy_presence_get_default_message (TpConnectionPresenceType presence);
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 4a9f80f..f8e22d9 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1254,8 +1254,8 @@ empathy_main_window_show (void)
"account-connection-changed",
G_CALLBACK (main_window_connection_changed_cb), window);
- window->errors = g_hash_table_new_full (empathy_account_hash,
- empathy_account_equal,
+ window->errors = g_hash_table_new_full (g_direct_hash,
+ g_direct_equal,
g_object_unref,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]