aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-30 02:20:57 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-30 02:20:57 +0800
commita5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893 (patch)
tree6888f4d92334f23ea1506697b1c4c2f92cd9f77d
parentbb2d63c7d3964a3cd68e6667a19907aa72bb686b (diff)
downloadgsoc2013-empathy-a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893.tar
gsoc2013-empathy-a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893.tar.gz
gsoc2013-empathy-a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893.tar.bz2
gsoc2013-empathy-a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893.tar.lz
gsoc2013-empathy-a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893.tar.xz
gsoc2013-empathy-a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893.tar.zst
gsoc2013-empathy-a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893.zip
Remove empathy_account_hash
-rw-r--r--libempathy/empathy-utils.c8
-rw-r--r--libempathy/empathy-utils.h1
-rw-r--r--src/empathy-main-window.c4
3 files changed, 2 insertions, 11 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index fe54ce85a..1e1377a8d 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 59ea15403..3ab4077f5 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 4a9f80f76..f8e22d91d 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);