aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-06 19:49:33 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-07 15:07:14 +0800
commitc9a2ff7e6958751484c0080ccc7184df7ba7d4c3 (patch)
treed2edb0eb092b420c894c410bd564b86efd2f4bda /libempathy
parent77ffbf2320b3bb35a86072814ffe02ec97463ba4 (diff)
downloadgsoc2013-empathy-c9a2ff7e6958751484c0080ccc7184df7ba7d4c3.tar
gsoc2013-empathy-c9a2ff7e6958751484c0080ccc7184df7ba7d4c3.tar.gz
gsoc2013-empathy-c9a2ff7e6958751484c0080ccc7184df7ba7d4c3.tar.bz2
gsoc2013-empathy-c9a2ff7e6958751484c0080ccc7184df7ba7d4c3.tar.lz
gsoc2013-empathy-c9a2ff7e6958751484c0080ccc7184df7ba7d4c3.tar.xz
gsoc2013-empathy-c9a2ff7e6958751484c0080ccc7184df7ba7d4c3.tar.zst
gsoc2013-empathy-c9a2ff7e6958751484c0080ccc7184df7ba7d4c3.zip
remove unused proxy hash and equal functions
https://bugzilla.gnome.org/show_bug.cgi?id=677545
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-utils.c30
-rw-r--r--libempathy/empathy-utils.h3
2 files changed, 0 insertions, 33 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 7d6c8c06c..ccaf955e4 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -439,36 +439,6 @@ empathy_file_lookup (const gchar *filename, const gchar *subdir)
return path;
}
-guint
-empathy_proxy_hash (gconstpointer key)
-{
- TpProxy *proxy = TP_PROXY (key);
- TpProxyClass *proxy_class = TP_PROXY_GET_CLASS (key);
-
- g_return_val_if_fail (TP_IS_PROXY (proxy), 0);
- g_return_val_if_fail (proxy_class->must_have_unique_name, 0);
-
- return g_str_hash (proxy->object_path) ^ g_str_hash (proxy->bus_name);
-}
-
-gboolean
-empathy_proxy_equal (gconstpointer a,
- gconstpointer b)
-{
- TpProxy *proxy_a = TP_PROXY (a);
- TpProxy *proxy_b = TP_PROXY (b);
- TpProxyClass *proxy_a_class = TP_PROXY_GET_CLASS (a);
- TpProxyClass *proxy_b_class = TP_PROXY_GET_CLASS (b);
-
- g_return_val_if_fail (TP_IS_PROXY (proxy_a), FALSE);
- g_return_val_if_fail (TP_IS_PROXY (proxy_b), FALSE);
- g_return_val_if_fail (proxy_a_class->must_have_unique_name, 0);
- g_return_val_if_fail (proxy_b_class->must_have_unique_name, 0);
-
- return g_str_equal (proxy_a->object_path, proxy_b->object_path) &&
- g_str_equal (proxy_a->bus_name, proxy_b->bus_name);
-}
-
gboolean
empathy_check_available_state (void)
{
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index a31ed34fc..088c39236 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -63,9 +63,6 @@ const gchar * empathy_presence_to_str (TpConnectionPresenceType presence);
TpConnectionPresenceType empathy_presence_from_str (const gchar *str);
gchar * empathy_file_lookup (const gchar *filename,
const gchar *subdir);
-gboolean empathy_proxy_equal (gconstpointer a,
- gconstpointer b);
-guint empathy_proxy_hash (gconstpointer key);
gboolean empathy_check_available_state (void);
gint empathy_uint_compare (gconstpointer a,
gconstpointer b);