diff options
author | huyvq <huyvq.c633@gmail.com> | 2017-06-02 23:23:39 +0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-21 13:49:17 -0400 |
commit | 0471c905a18760413a63f05f50535313c76ca0c4 (patch) | |
tree | 82291e6930d92cf7252b41d91e3d28b8ea7aa485 /src/or/router.c | |
parent | f0a5416f95e06ebfd27eb95436eb85cd66494b9a (diff) | |
download | tor-0471c905a18760413a63f05f50535313c76ca0c4.tar.gz tor-0471c905a18760413a63f05f50535313c76ca0c4.zip |
Remove obsolete authdir_mode_any_main()
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/or/router.c b/src/or/router.c index 2187a76b48..849cffd8fa 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1596,12 +1596,6 @@ authdir_mode_v3(const or_options_t *options) { return authdir_mode(options) && options->V3AuthoritativeDir != 0; } -/** Return true iff we are a v3 directory authority. */ -int -authdir_mode_any_main(const or_options_t *options) -{ - return options->V3AuthoritativeDir; -} /** Return true if we believe ourselves to be any kind of * authoritative directory beyond just a hidserv authority. */ int @@ -1619,7 +1613,7 @@ authdir_mode_handles_descs(const or_options_t *options, int purpose) if (purpose < 0) return authdir_mode_any_nonhidserv(options); else if (purpose == ROUTER_PURPOSE_GENERAL) - return authdir_mode_any_main(options); + return authdir_mode_v3(options); else if (purpose == ROUTER_PURPOSE_BRIDGE) return (options->BridgeAuthoritativeDir); else |