Remove the testing_since* fields

They weren't actually used since 7a35dad00

Bug 5809
This commit is contained in:
Nick Mathewson 2012-09-21 22:05:09 -04:00
parent cf182efe0d
commit 9d4c53534d
4 changed files with 4 additions and 9 deletions

3
changes/bug5809 Normal file
View file

@ -0,0 +1,3 @@
o Removed code:
- Removed the testing_since field of node_t, which hasn't been used
for anything since 0.2.0.9-alpha.

View file

@ -3400,6 +3400,7 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router)
{
node_t *node = NULL;
tor_addr_t router_addr;
(void) now;
tor_assert(router);
node = node_get_mutable_by_id(router->cache_info.identity_digest);
@ -3408,9 +3409,6 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router)
/* IPv4. */
log_debug(LD_OR,"Testing reachability of %s at %s:%u.",
router->nickname, router->address, router->or_port);
/* Remember when we started trying to determine reachability */
if (!node->testing_since)
node->testing_since = now;
tor_addr_from_ipv4h(&router_addr, router->addr);
connection_or_connect(&router_addr, router->or_port,
router->cache_info.identity_digest);
@ -3423,8 +3421,6 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router)
router->nickname,
tor_addr_to_str(addrstr, &router->ipv6_addr, sizeof(addrstr), 1),
router->ipv6_orport);
if (!node->testing_since6)
node->testing_since6 = now;
connection_or_connect(&router->ipv6_addr, router->ipv6_orport,
router->cache_info.identity_digest);
}

View file

@ -127,7 +127,6 @@ static void
node_addrs_changed(node_t *node)
{
node->last_reachable = node->last_reachable6 = 0;
node->testing_since = node->testing_since6 = 0;
node->country = -1;
}

View file

@ -2036,9 +2036,6 @@ typedef struct node_t {
time_t last_reachable; /* IPv4. */
time_t last_reachable6; /* IPv6. */
/** When did we start testing reachability for this OR? */
time_t testing_since; /* IPv4. */
time_t testing_since6; /* IPv6. */
} node_t;
/** How many times will we try to download a router's descriptor before giving