aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-12-08 00:09:28 +0000
committerRoger Dingledine <arma@torproject.org>2008-12-08 00:09:28 +0000
commitb1c8fb7058a1840ab3033ea5769c4629409793aa (patch)
tree1bf0b10d23e0cd95b0969ede4474366be405e36b
parente5be0504abe4d830247295d6c3ed9c6de92d2e16 (diff)
downloadtor-b1c8fb7058a1840ab3033ea5769c4629409793aa.tar.gz
tor-b1c8fb7058a1840ab3033ea5769c4629409793aa.zip
this function is no longer used.
svn:r17515
-rw-r--r--src/or/directory.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 0802579eaf..ee31cc6683 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2163,25 +2163,6 @@ write_http_response_header(dir_connection_t *conn, ssize_t length,
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. */