-removing dead code, chvc_ was not used at all
authorChristian Grothoff <christian@grothoff.org>
Mon, 2 Feb 2015 22:28:47 +0000 (22:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 2 Feb 2015 22:28:47 +0000 (22:28 +0000)
src/transport/gnunet-service-transport_validation.c

index d0a731789f070f4b1a9d8a7786c7e4032bf1a63a..ab3fbe8f32c8f39454951af258d347dd4b8b0a72 100644 (file)
@@ -251,7 +251,7 @@ struct ValidationEntry
   uint32_t challenge;
 
   /**
-   * When passing the address in 'add_valid_peer_address', did we
+   * When passing the address in #add_valid_peer_address(), did we
    * copy the address to the HELLO yet?
    */
   int copied;
@@ -278,41 +278,6 @@ struct ValidationEntry
 };
 
 
-/**
- * Context of currently active requests to peerinfo
- * for validation of HELLOs.
- */
-struct CheckHelloValidatedContext
-{
-
-  /**
-   * This is a doubly-linked list.
-   */
-  struct CheckHelloValidatedContext *next;
-
-  /**
-   * This is a doubly-linked list.
-   */
-  struct CheckHelloValidatedContext *prev;
-
-  /**
-   * Hello that we are validating.
-   */
-  const struct GNUNET_HELLO_Message *hello;
-
-};
-
-
-/**
- * Head of linked list of HELLOs awaiting validation.
- */
-static struct CheckHelloValidatedContext *chvc_head;
-
-/**
- * Tail of linked list of HELLOs awaiting validation
- */
-static struct CheckHelloValidatedContext *chvc_tail;
-
 /**
  * Map of PeerIdentities to 'struct ValidationEntry*'s (addresses
  * of the given peer that we are currently validating, have validated
@@ -936,17 +901,10 @@ GST_validation_start (unsigned int max_fds)
 void
 GST_validation_stop ()
 {
-  struct CheckHelloValidatedContext *chvc;
-
   GNUNET_CONTAINER_multipeermap_iterate (validation_map,
                                          &cleanup_validation_entry, NULL);
   GNUNET_CONTAINER_multipeermap_destroy (validation_map);
   validation_map = NULL;
-  while (NULL != (chvc = chvc_head))
-  {
-    GNUNET_CONTAINER_DLL_remove (chvc_head, chvc_tail, chvc);
-    GNUNET_free (chvc);
-  }
   GNUNET_PEERINFO_notify_cancel (pnc);
 }