Browse Source

remove unused code

svn:r5847
Roger Dingledine 19 years ago
parent
commit
b9540285af
3 changed files with 1 additions and 18 deletions
  1. 0 1
      src/or/or.h
  2. 0 16
      src/or/routerlist.c
  3. 1 1
      src/or/routerparse.c

+ 0 - 1
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,

+ 0 - 16
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.
  */

+ 1 - 1
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");