summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-05 21:39:46 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-05 21:39:46 +0000
commitcf6fe27616603d9b7839cb91dbdb71fa0a766a44 (patch)
tree19d7ca1af1893b4a415b16d5b6450fae476c3432 /src/or/relay.c
parent92aaf68d199f66e414bc57e428b6a2533687f68a (diff)
downloadtor-cf6fe27616603d9b7839cb91dbdb71fa0a766a44.tar.gz
tor-cf6fe27616603d9b7839cb91dbdb71fa0a766a44.zip
r17915@catbus: nickm | 2008-02-05 16:28:57 -0500
Remove a dead function. svn:r13389
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index d7d33f8741..006c22fe14 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1516,7 +1516,8 @@ circuit_consider_sending_sendme(circuit_t *circ, crypt_path_t *layer_hint)
static int total_cells_allocated = 0;
#ifdef ENABLE_CELL_POOL /* Defined in ./configure. True by default. */
-/* XXX020 make cell pools the only option once we know they work? -RD */
+/* XXX020 make cell pools the only option once we know they work and improve
+ * matters? -RD */
static mp_pool_t *cell_pool = NULL;
/** Allocate structures to hold cells. */
void
@@ -1921,27 +1922,6 @@ append_cell_to_circuit_queue(circuit_t *circ, or_connection_t *orconn,
}
}
-/** Remove all the cells queued on <b>circ</b> for <b>orconn</b>. */
-void
-circuit_clear_cell_queue(circuit_t *circ, or_connection_t *orconn)
-{
- cell_queue_t *queue;
- // int streams_blocked; // XXXX020 use this for something, or remove it.
- if (circ->n_conn == orconn) {
- queue = &circ->n_conn_cells;
- // streams_blocked = circ->streams_blocked_on_n_conn;
- } else {
- or_circuit_t *orcirc = TO_OR_CIRCUIT(circ);
- queue = &orcirc->p_conn_cells;
- // streams_blocked = circ->streams_blocked_on_p_conn;
- }
-
- if (queue->n)
- make_circuit_inactive_on_conn(circ,orconn);
-
- cell_queue_clear(queue);
-}
-
/** Fail with an assert if the active circuits ring on <b>orconn</b> is
* corrupt. */
void