summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-02 23:04:39 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-02 23:04:39 +0000
commitfee260b50973a0e26eaa10a5736a3e16ee6201ae (patch)
treebdbe57c07ec363ed4154a5f8e412b590fb4d7416 /src/transport/gnunet-service-transport_validation.c
parent5cc8737d69e25eacb662824cd725db61c73b5dd4 (diff)
get_address_latency is actually dead
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index e6e27a90d..f0b8d9466 100644
--- 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