diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-30 02:20:57 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-30 02:20:57 +0800 |
commit | a5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893 (patch) | |
tree | 6888f4d92334f23ea1506697b1c4c2f92cd9f77d | |
parent | bb2d63c7d3964a3cd68e6667a19907aa72bb686b (diff) | |
download | gsoc2013-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.c | 8 | ||||
-rw-r--r-- | libempathy/empathy-utils.h | 1 | ||||
-rw-r--r-- | 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 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); |