From 43b1f6976d55ad0abecbf7c4d1f514286550fb3f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 2 Feb 2015 22:28:47 +0000 Subject: [PATCH] -removing dead code, chvc_ was not used at all --- .../gnunet-service-transport_validation.c | 44 +------------------ 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index d0a731789..ab3fbe8f3 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c @@ -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); } -- 2.25.1