[Telepathy-commits] [telepathy-gabble/master] Remove some debugs that were added in the xep0115 branch

Alban Crequy alban.crequy at collabora.co.uk
Tue Aug 19 10:53:06 PDT 2008


20080528182600-a41c0-3712ed0e338b725b16bb3b7484dfe958bdbe9998.gz
---
 src/caps-hash.c         |    4 ----
 src/gabble-connection.c |   12 ------------
 src/presence-cache.c    |    5 -----
 3 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/src/caps-hash.c b/src/caps-hash.c
index 2518d03..1b8ddb9 100644
--- a/src/caps-hash.c
+++ b/src/caps-hash.c
@@ -183,15 +183,11 @@ caps_hash_compute (
         }
     }
 
-  DEBUG ("caps string: '%s'", s->str);
-
   sha1_bin (s->str, s->len, (guchar *) sha1);
   g_string_free (s, TRUE);
 
   encoded = base64_encode (SHA1_HASH_SIZE, sha1, FALSE);
 
-  DEBUG ("caps hash (base64): '%s'", encoded);
-
   return encoded;
 }
 
diff --git a/src/gabble-connection.c b/src/gabble-connection.c
index 6548798..38efb0c 100644
--- a/src/gabble-connection.c
+++ b/src/gabble-connection.c
@@ -1486,17 +1486,11 @@ connection_iq_disco_cb (LmMessageHandler *handler,
    * 1.5. */
 
   caps_hash = caps_hash_compute_from_self_presence (self);
-  DEBUG ("caps_hash='%s'", caps_hash);
 
   if (NULL == node ||
       !tp_strdiff (suffix, BUNDLE_VOICE_V1) ||
       !tp_strdiff (suffix, caps_hash))
     {
-      if (NULL == node)
-        DEBUG ("No requested node. Send all features.");
-      else
-        DEBUG ("requested node '%s' is an existing node", suffix);
-
       for (i = features; NULL != i; i = i->next)
         {
           const Feature *feature = (const Feature *) i->data;
@@ -2041,13 +2035,9 @@ _emit_capabilities_changed (GabbleConnection *conn,
   const CapabilityConversionData *ccd;
   guint i;
 
-  DEBUG ("Called.");
-
   if (old_caps == new_caps)
     return;
 
-  DEBUG ("caps changed.");
-
   caps_arr = g_ptr_array_new ();
 
   for (ccd = capabilities_conversions; NULL != ccd->iface; ccd++)
@@ -2086,7 +2076,6 @@ _emit_capabilities_changed (GabbleConnection *conn,
         }
     }
 
-  DEBUG ("caps_arr->len=%d", caps_arr->len);
   if (caps_arr->len)
     tp_svc_connection_interface_capabilities_emit_capabilities_changed (
         conn, caps_arr);
@@ -2109,7 +2098,6 @@ connection_capabilities_update_cb (GabblePresenceCache *cache,
 {
   GabbleConnection *conn = GABBLE_CONNECTION (user_data);
 
-  DEBUG ("Called.");
   _emit_capabilities_changed (conn, handle, old_caps, new_caps);
 }
 
diff --git a/src/presence-cache.c b/src/presence-cache.c
index 266d9c6..4f62e2c 100644
--- a/src/presence-cache.c
+++ b/src/presence-cache.c
@@ -958,9 +958,6 @@ _process_caps_uri (GabblePresenceCache *cache,
   GabblePresenceCachePrivate *priv;
   TpHandleRepoIface *contact_repo;
 
-  DEBUG ("Called with from='%s' uri='%s' hash='%s' ver='%s'",
-      from, uri, hash, ver);
-
   priv = GABBLE_PRESENCE_CACHE_PRIV (cache);
   contact_repo = tp_base_connection_get_handles (
       (TpBaseConnection *)priv->conn, TP_HANDLE_TYPE_CONTACT);
@@ -1019,7 +1016,6 @@ _process_caps_uri (GabblePresenceCache *cache,
       waiters = (GSList *) value;
       waiter = disco_waiter_new (contact_repo, handle, resource,
           hash, ver, serial);
-      DEBUG ("New disco waiter %p: hash='%s' ver='%s'", waiter, hash, ver);
       waiters = g_slist_prepend (waiters, waiter);
       g_hash_table_insert (priv->disco_pending, key, waiters);
 
@@ -1062,7 +1058,6 @@ _process_caps (GabblePresenceCache *cache,
     resource++;
 
   uris = _parse_cap_bundles (lm_node, &hash, &ver);
-  DEBUG ("_parse_cap_bundles get hash='%s' ver='%s'", hash, ver);
 
   if (presence)
       old_caps = presence->caps;
-- 
1.5.6.3




More information about the Telepathy-commits mailing list