[empathy] remove unused proxy hash and equal functions



commit c9a2ff7e6958751484c0080ccc7184df7ba7d4c3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jun 6 13:49:33 2012 +0200

    remove unused proxy hash and equal functions
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677545

 libempathy/empathy-utils.c |   30 ------------------------------
 libempathy/empathy-utils.h |    3 ---
 2 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 7d6c8c0..ccaf955 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 a31ed34..088c392 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);



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