aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-15 15:33:34 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-15 15:33:34 -0500
commitb3a69074933492080629d45b1c890606aa2bd08a (patch)
tree53f4929f0c1e19ed7ff9022ac194defe8ce78f25 /src/or/dirserv.c
parent67749475f56532235602e0c8d1a9a59a68d816c3 (diff)
downloadtor-b3a69074933492080629d45b1c890606aa2bd08a.tar
tor-b3a69074933492080629d45b1c890606aa2bd08a.tar.gz
Remove a bunch of functions that were never called.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index c0e000c75..cd0e23cc2 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1301,15 +1301,6 @@ directory_permits_begindir_requests(const or_options_t *options)
return options->BridgeRelay != 0 || options->DirPort_set;
}
-/** Return 1 if we want to allow controllers to ask us directory
- * requests via the controller interface, which doesn't require
- * having any separate port open. */
-int
-directory_permits_controller_requests(const or_options_t *options)
-{
- return options->DirPort_set;
-}
-
/** Return 1 if we have no need to fetch new descriptors. This generally
* happens when we're not a dir cache and we haven't built any circuits
* lately.
@@ -1457,21 +1448,6 @@ dirserv_set_cached_consensus_networkstatus(const char *networkstatus,
cached_dir_decref(old_networkstatus);
}
-/** Remove any v1 info from the directory cache that was published
- * too long ago. */
-void
-dirserv_clear_old_v1_info(time_t now)
-{
- if (cached_directory &&
- cached_directory->published < (now - MAX_V1_DIRECTORY_AGE)) {
- cached_dir_decref(cached_directory);
- cached_directory = NULL;
- }
- if (cached_runningrouters.published < (now - MAX_V1_RR_AGE)) {
- clear_cached_dir(&cached_runningrouters);
- }
-}
-
/** Helper: If we're an authority for the right directory version (v1)
* (based on <b>auth_type</b>), try to regenerate
* auth_src as appropriate and return it, falling back to cache_src on