[or-cvs] r17515: {tor} this function is no longer used. (tor/trunk/src/or)

arma at seul.org arma at seul.org
Mon Dec 8 00:09:28 UTC 2008


Author: arma
Date: 2008-12-07 19:09:28 -0500 (Sun, 07 Dec 2008)
New Revision: 17515

Modified:
   tor/trunk/src/or/directory.c
Log:
this function is no longer used.


Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c	2008-12-08 00:04:29 UTC (rev 17514)
+++ tor/trunk/src/or/directory.c	2008-12-08 00:09:28 UTC (rev 17515)
@@ -2163,25 +2163,6 @@
                              cache_lifetime);
 }
 
-/** Helper function: return 1 if there are any dir conns of purpose
- * <b>purpose</b> that are going elsewhere than our own ORPort/Dirport.
- * Else return 0.
- */
-static int
-already_fetching_directory(int purpose)
-{
-  smartlist_t *conns = get_connection_array();
-  SMARTLIST_FOREACH(conns, connection_t *, conn,
-  {
-    if (conn->type == CONN_TYPE_DIR &&
-        conn->purpose == purpose &&
-        !conn->marked_for_close &&
-        !router_digest_is_me(TO_DIR_CONN(conn)->identity_digest))
-      return 1;
-  });
-  return 0;
-}
-
 #ifdef INSTRUMENT_DOWNLOADS
 /** Map used to keep track of how much data we've up/downloaded in what kind
  * of request.  Maps from request type to pointer to uint64_t. */



More information about the tor-commits mailing list