diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-15 12:30:43 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-16 07:48:17 -0500 |
commit | 5cff1ce84bf11d0a3abbfdda30dd3b96ce298c6b (patch) | |
tree | 0b900b848acc459ce9d478e42d60c2f6821c3934 /src/feature/dircache/dircache_stub.c | |
parent | 6ba4b5e5da9089a061ed64c0e172e72f71c11e75 (diff) | |
download | tor-5cff1ce84bf11d0a3abbfdda30dd3b96ce298c6b.tar.gz tor-5cff1ce84bf11d0a3abbfdda30dd3b96ce298c6b.zip |
Turn several functions from stubs into macros
This may help the compiler eliminate deadcode.
Diffstat (limited to 'src/feature/dircache/dircache_stub.c')
-rw-r--r-- | src/feature/dircache/dircache_stub.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/feature/dircache/dircache_stub.c b/src/feature/dircache/dircache_stub.c index f6804dad76..87811597d1 100644 --- a/src/feature/dircache/dircache_stub.c +++ b/src/feature/dircache/dircache_stub.c @@ -30,34 +30,6 @@ connection_dirserv_flushed_some(dir_connection_t *conn) return -1; } -int -directory_caches_unknown_auth_certs(const or_options_t *options) -{ - (void) options; - return 0; -} - -int -directory_caches_dir_info(const or_options_t *options) -{ - (void) options; - return 0; -} - -int -directory_permits_begindir_requests(const or_options_t *options) -{ - (void) options; - return 0; -} - -cached_dir_t * -dirserv_get_consensus(const char *flavor_name) -{ - (void) flavor_name; - return NULL; -} - void dir_conn_clear_spool(dir_connection_t *conn) { @@ -71,22 +43,6 @@ consdiffmgr_enable_background_compression(void) { } -void -dirserv_set_cached_consensus_networkstatus(const char *networkstatus, - size_t networkstatus_len, - const char *flavor_name, - const common_digests_t *digests, - const uint8_t *sha3_as_signed, - time_t published) -{ - (void)networkstatus; - (void)networkstatus_len; - (void)flavor_name; - (void)digests; - (void)sha3_as_signed; - (void)published; -} - int consdiffmgr_add_consensus(const char *consensus, size_t consensus_len, |