diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-01 08:44:47 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-01 08:44:47 -0500 |
commit | c2757c3774c4f191bdca5684eec4833a228c00c2 (patch) | |
tree | 3c391a1f542a5b61a0596bdef612e66d13251234 /src/or/nodelist.c | |
parent | ea8e9f17f52877cc795f1792acb81d7fdaff6baf (diff) | |
download | tor-c2757c3774c4f191bdca5684eec4833a228c00c2.tar.gz tor-c2757c3774c4f191bdca5684eec4833a228c00c2.zip |
Remove nodelist_recompute_all_hsdir_indices() as unused.
Closes 25108.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index c2bc0d1f76..17a50ca862 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -373,27 +373,6 @@ node_set_hsdir_index(node_t *node, const networkstatus_t *ns) return; } -/** Recompute all node hsdir indices. */ -void -nodelist_recompute_all_hsdir_indices(void) -{ - networkstatus_t *consensus; - if (!the_nodelist) { - return; - } - - /* Get a live consensus. Abort if not found */ - consensus = networkstatus_get_live_consensus(approx_time()); - if (!consensus) { - return; - } - - /* Recompute all hsdir indices */ - SMARTLIST_FOREACH_BEGIN(the_nodelist->nodes, node_t *, node) { - node_set_hsdir_index(node, consensus); - } SMARTLIST_FOREACH_END(node); -} - /** Called when a node's address changes. */ static void node_addrs_changed(node_t *node) |