summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2012-09-26 15:05:10 -0700
committerAndrea Shepard <andrea@torproject.org>2012-10-10 00:44:45 -0700
commit35f5259df4feacbb77b14c6da30ec137a21763bb (patch)
treed2840f24771125df457ce70c5fc74727ab9b8d00 /src/or/relay.c
parent38fa3b7e4489dafdb74ebef96f5a684c1f29eb1e (diff)
downloadtor-35f5259df4feacbb77b14c6da30ec137a21763bb.tar.gz
tor-35f5259df4feacbb77b14c6da30ec137a21763bb.zip
Eliminate linked list helper functions in relay.c which are no longer used
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index f0792437c3..e3b383ba76 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1972,38 +1972,6 @@ cell_queue_pop(cell_queue_t *queue)
return cell;
}
-/** Return a pointer to the "next_active_on_{n,p}_chan" pointer of <b>circ</b>,
- * depending on whether <b>chan</b> matches n_chan or p_chan. */
-static INLINE circuit_t **
-next_circ_on_chan_p(circuit_t *circ, channel_t *chan)
-{
- tor_assert(circ);
- tor_assert(chan);
- if (chan == circ->n_chan) {
- return &circ->next_active_on_n_chan;
- } else {
- or_circuit_t *orcirc = TO_OR_CIRCUIT(circ);
- tor_assert(chan == orcirc->p_chan);
- return &orcirc->next_active_on_p_chan;
- }
-}
-
-/** Return a pointer to the "prev_active_on_{n,p}_chan" pointer of <b>circ</b>,
- * depending on whether <b>chan</b> matches n_chan or p_chan. */
-static INLINE circuit_t **
-prev_circ_on_chan_p(circuit_t *circ, channel_t *chan)
-{
- tor_assert(circ);
- tor_assert(chan);
- if (chan == circ->n_chan) {
- return &circ->prev_active_on_n_chan;
- } else {
- or_circuit_t *orcirc = TO_OR_CIRCUIT(circ);
- tor_assert(chan == orcirc->p_chan);
- return &orcirc->prev_active_on_p_chan;
- }
-}
-
#if 0
/** Helper for sorting cell_ewma_t values in their priority queue. */
static int