gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit fee260b50973a0e26eaa10a5736a3e16ee6201ae
parent 5cc8737d69e25eacb662824cd725db61c73b5dd4
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  2 Feb 2015 23:04:39 +0000

get_address_latency is actually dead

Diffstat:
Msrc/transport/gnunet-service-transport_validation.c | 30------------------------------
Msrc/transport/gnunet-service-transport_validation.h | 12------------
2 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c @@ -1669,36 +1669,6 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address, /** - * Query validation about the latest observed latency on a given - * address. - * - * @param address the address - * @return observed latency of the address, FOREVER if the address was - * never successfully validated - */ -struct GNUNET_TIME_Relative -GST_validation_get_address_latency (const struct GNUNET_HELLO_Address *address) -{ - struct ValidationEntry *ve; - - if (NULL == address) - { - GNUNET_break (0); - return GNUNET_TIME_UNIT_FOREVER_REL; - } - if (NULL == GST_plugins_find (address->transport_name)) - { - GNUNET_break (0); /* but we don't have the plugin! */ - return GNUNET_TIME_UNIT_FOREVER_REL; - } - ve = find_validation_entry (address); - if (NULL == ve) - return GNUNET_TIME_UNIT_FOREVER_REL; - return ve->latency; -} - - -/** * Closure for the validation_entries_iterate function. */ struct ValidationIteratorContext diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h @@ -62,18 +62,6 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address, /** - * Query validation about the latest observed latency on a given - * address. - * - * @param address the address - * @return observed latency of the address, FOREVER if the address was - * never successfully validated - */ -struct GNUNET_TIME_Relative -GST_validation_get_address_latency (const struct GNUNET_HELLO_Address *address); - - -/** * Function called to notify transport users that a neighbour peer changed its * active address. *