gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35063 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r35063 - gnunet/src/transport
Date: Mon, 2 Feb 2015 23:28:47 +0100

Author: grothoff
Date: 2015-02-02 23:28:47 +0100 (Mon, 02 Feb 2015)
New Revision: 35063

Modified:
   gnunet/src/transport/gnunet-service-transport_validation.c
Log:
-removing dead code, chvc_ was not used at all

Modified: gnunet/src/transport/gnunet-service-transport_validation.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_validation.c  2015-02-02 
22:25:48 UTC (rev 35062)
+++ gnunet/src/transport/gnunet-service-transport_validation.c  2015-02-02 
22:28:47 UTC (rev 35063)
@@ -251,7 +251,7 @@
   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;
@@ -279,41 +279,6 @@
 
 
 /**
- * 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
  * or are blocked from re-validation for a while).
@@ -936,17 +901,10 @@
 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);
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]