diff options
author | Roger Dingledine <arma@torproject.org> | 2016-04-13 03:13:12 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-05-09 14:41:54 -0400 |
commit | bcae392e0edc682990da71524a0802cf79e3e698 (patch) | |
tree | 235ff52b62f44c4e232fd88909efd7cbcb4a9630 /src/or/networkstatus.c | |
parent | e230e80ab3021caf8153d2ba09bab5cb185366dc (diff) | |
download | tor-bcae392e0edc682990da71524a0802cf79e3e698.tar.gz tor-bcae392e0edc682990da71524a0802cf79e3e698.zip |
avoid another redundant check
we should avoid launching a consensus fetch if we don't want one,
but if we do end up with an extra one, we should let the other checks
take care of it.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 4a9b36771b..3b38c07ea0 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1369,15 +1369,6 @@ networkstatus_consensus_is_already_downloading(const char *resource) return answer; } -/* Is tor currently downloading a consensus of the usable flavor? */ -int -networkstatus_consensus_is_downloading_usable_flavor(void) -{ - const char *resource = - networkstatus_get_flavor_name(usable_consensus_flavor()); - return networkstatus_consensus_is_already_downloading(resource); -} - /** Given two router status entries for the same router identity, return 1 if * if the contents have changed between them. Otherwise, return 0. */ static int |