diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/or.h | 1 | ||||
-rw-r--r-- | src/or/routerlist.c | 16 | ||||
-rw-r--r-- | src/or/routerparse.c | 2 |
3 files changed, 1 insertions, 18 deletions
diff --git a/src/or/or.h b/src/or/or.h index 06b248052c..1f82b90ea6 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2253,7 +2253,6 @@ routerstatus_t *router_pick_trusteddirserver(int need_v1_authority, int retry_if_no_servers); trusted_dir_server_t *router_get_trusteddirserver_by_digest( const char *digest); -int all_trusted_directory_servers_down(void); void routerlist_add_family(smartlist_t *sl, routerinfo_t *router); void add_nickname_list_to_smartlist(smartlist_t *sl, const char *list, int must_be_running, diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 46d8ab20d5..6a4bc5cbb5 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -524,22 +524,6 @@ router_reset_status_download_failures(void) mark_all_trusteddirservers_up(); } -#if 0 -/** Return 0 if \\exists an authoritative dirserver that's currently - * thought to be running, else return 1. - */ -/* XXXX Nobody calls this function. Should it go away? */ -int -all_trusted_directory_servers_down(void) -{ - if (!trusted_dir_servers) - return 1; - SMARTLIST_FOREACH(trusted_dir_servers, trusted_dir_server_t *, dir, - if (dir->is_running) return 0); - return 1; -} -#endif - /** Add all the family of <b>router</b> to the smartlist <b>sl</b>. * This is used to make sure we don't pick siblings in a single path. */ diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 979ad22b08..fef16954d5 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -367,7 +367,7 @@ router_parse_directory(const char *str) /* XXXX This could be simplified a lot, but it will all go away * once pre-0.1.1.8 is obsolete, and for now it's better not to - * tuoch it. */ + * touch it. */ if (router_get_dir_hash(str, digest)) { warn(LD_DIR, "Unable to compute digest of directory"); |