summaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-05-20 06:53:10 +0000
committerRoger Dingledine <arma@torproject.org>2003-05-20 06:53:10 +0000
commit1c6def292b8551495660bf5dc3477e3d634ed202 (patch)
tree768e2cd5c01da3f0c5f4cfba96f13c12c2ea0606 /src/or/onion.c
parent39e9d79038f6075ec59fdafba811ffa406796b5c (diff)
downloadtor-1c6def292b8551495660bf5dc3477e3d634ed202.tar.gz
tor-1c6def292b8551495660bf5dc3477e3d634ed202.zip
remove dead code
circuits no longer queue more cells when the windows are empty -- they simply don't package it from the buffer if they're not going to want it. we can restore this code later if we need to resume queueing. svn:r294
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 77b7b19f0d..2d6578bf61 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -80,7 +80,6 @@ void onion_pending_process_one(void) {
return; /* it died on us */
}
- assert(ol_list->circ->p_conn);
assert(ol_length > 0);
circ = ol_list->circ;
@@ -399,12 +398,6 @@ crypt_path_t *onion_generate_cpath(routerinfo_t **firsthop) {
}
cpath = hop;
-#if 0
- if (i) { /* not last hop. (last hop has 0's for these.) */
- hop->port = rarray[route[i-1]]->or_port;
- hop->addr = rarray[route[i-1]]->addr;
- }
-#endif
hop->port = rarray[route[i]]->or_port;
hop->addr = rarray[route[i]]->addr;