[or-cvs] remove unused code

arma at seul.org arma at seul.org
Fri Jan 20 20:54:45 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerparse.c routerlist.c or.h 
Log Message:
remove unused code


Index: routerparse.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -p -d -r1.168 -r1.169
--- routerparse.c	12 Jan 2006 18:04:17 -0000	1.168
+++ routerparse.c	20 Jan 2006 20:54:42 -0000	1.169
@@ -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");

Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.427
retrieving revision 1.428
diff -u -p -d -r1.427 -r1.428
--- routerlist.c	17 Jan 2006 04:14:04 -0000	1.427
+++ routerlist.c	20 Jan 2006 20:54:42 -0000	1.428
@@ -524,22 +524,6 @@ router_reset_status_download_failures(vo
   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.
  */

Index: or.h
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/or.h,v
retrieving revision 1.781
retrieving revision 1.782
diff -u -p -d -r1.781 -r1.782
--- or.h	17 Jan 2006 04:03:23 -0000	1.781
+++ or.h	20 Jan 2006 20:54:42 -0000	1.782
@@ -2253,7 +2253,6 @@ routerstatus_t *router_pick_trusteddirse
                                              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,



More information about the tor-commits mailing list