mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
remove unused code
svn:r5847
This commit is contained in:
parent
fb1e654df7
commit
b9540285af
@ -2253,7 +2253,6 @@ routerstatus_t *router_pick_trusteddirserver(int need_v1_authority,
|
|||||||
int retry_if_no_servers);
|
int retry_if_no_servers);
|
||||||
trusted_dir_server_t *router_get_trusteddirserver_by_digest(
|
trusted_dir_server_t *router_get_trusteddirserver_by_digest(
|
||||||
const char *digest);
|
const char *digest);
|
||||||
int all_trusted_directory_servers_down(void);
|
|
||||||
void routerlist_add_family(smartlist_t *sl, routerinfo_t *router);
|
void routerlist_add_family(smartlist_t *sl, routerinfo_t *router);
|
||||||
void add_nickname_list_to_smartlist(smartlist_t *sl, const char *list,
|
void add_nickname_list_to_smartlist(smartlist_t *sl, const char *list,
|
||||||
int must_be_running,
|
int must_be_running,
|
||||||
|
@ -524,22 +524,6 @@ router_reset_status_download_failures(void)
|
|||||||
mark_all_trusteddirservers_up();
|
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>.
|
/** 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.
|
* This is used to make sure we don't pick siblings in a single path.
|
||||||
*/
|
*/
|
||||||
|
@ -367,7 +367,7 @@ router_parse_directory(const char *str)
|
|||||||
|
|
||||||
/* XXXX This could be simplified a lot, but it will all go away
|
/* 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
|
* 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)) {
|
if (router_get_dir_hash(str, digest)) {
|
||||||
warn(LD_DIR, "Unable to compute digest of directory");
|
warn(LD_DIR, "Unable to compute digest of directory");
|
||||||
|
Loading…
Reference in New Issue
Block a user