tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 0af605f6a0411007d6fbe3080c972d1f1a2e584a
parent b1f9824464dcaf998623be0a807678096c10feac
Author: David Goulet <dgoulet@torproject.org>
Date:   Thu, 16 Oct 2025 12:37:33 +0000

Merge branch 'unused-code' into 'main'

remove unused function

See merge request tpo/core/tor!945
Diffstat:
Msrc/feature/nodelist/nodelist.c | 9---------
Msrc/feature/nodelist/nodelist.h | 1-
2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c @@ -821,15 +821,6 @@ nodelist_set_consensus(const networkstatus_t *ns) } } -/** Return 1 iff <b>node</b> has Exit flag and no BadExit flag. - * Otherwise, return 0. - */ -int -node_is_good_exit(const node_t *node) -{ - return node->is_exit && ! node->is_bad_exit; -} - /** Helper: return true iff a node has a usable amount of information*/ static inline int node_is_usable(const node_t *node) diff --git a/src/feature/nodelist/nodelist.h b/src/feature/nodelist/nodelist.h @@ -54,7 +54,6 @@ void node_get_verbose_nickname(const node_t *node, void node_get_verbose_nickname_by_id(const char *id_digest, char *verbose_name_out); int node_is_dir(const node_t *node); -int node_is_good_exit(const node_t *node); int node_has_any_descriptor(const node_t *node); int node_has_preferred_descriptor(const node_t *node, int for_direct_connect);