[hipl-commit] [trunk] Rev 4331: Remove disabled code from hipd/dhtqueue.c.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Fri, 16 Apr 2010 21:46:28 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 16/04/2010 at 21:46:28
Revision: 4331
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Remove disabled code from hipd/dhtqueue.c.

Modified:
  M  hipd/dhtqueue.c

=== modified file 'hipd/dhtqueue.c'
--- hipd/dhtqueue.c     2010-04-15 16:57:50 +0000
+++ hipd/dhtqueue.c     2010-04-16 18:46:15 +0000
@@ -22,30 +22,6 @@
 HIP_HASHTABLE *hip_dht_queue = NULL;
 
 
-#if 0
-/**
- * hip_debug_print_queue
- *
- * This function prints all the dht queue members
- *
- * @ return void
- */
-static void hip_debug_print_dht_queue(void)
-{
-    int i = 0;
-    hip_list_t *item, *tmp;
-    struct hip_queue *entry;
-
-    HIP_DEBUG("DEBUGGING QUEUE comment out if left uncommented\n");
-    HIP_DEBUG("Head count %d\n", dht_queue_count);
-    list_for_each_safe(item, tmp, hip_dht_queue, i) {
-        entry = list_entry(item);
-        HIP_DEBUG("Node data_len = %d\n", entry->data_len);
-        HIP_DEBUG("Node data= %s\n", entry->data);
-    }
-}
-#endif
-
 /**
  * hip_dht_queue_hash
  *
@@ -173,8 +149,6 @@
     err                = hip_ht_add(hip_dht_queue, new_item);
     dht_queue_count    = dht_queue_count + 1;
 
-    /* Debug line do not leave uncommented */
-    //hip_debug_print_dht_queue();
     _HIP_DEBUG("Write, Items in dht_queue %d on exit\n", dht_queue_count);
 
 out_err:
@@ -219,8 +193,6 @@
         // ugly way but I need only one item at a time and this was fast
         return 0;
     }
-    /* Debug line do not leave uncommented */
-    //hip_debug_print_dht_queue();
     if (this && this->data) {
         free(this->data);
     }

Other related posts:

  • » [hipl-commit] [trunk] Rev 4331: Remove disabled code from hipd/dhtqueue.c. - Diego Biurrun