aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-24 06:06:50 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-24 06:06:50 +0000
commit5b583073a1ad308ec1ca3114854345a1890f4185 (patch)
tree311cbde40d7d14a484eb330b6432d621122ba4f8 /src/or
parent23efc307764ef9fa5db15b4f1092ae5b67538971 (diff)
downloadtor-5b583073a1ad308ec1ca3114854345a1890f4185.tar
tor-5b583073a1ad308ec1ca3114854345a1890f4185.tar.gz
remove some more dead code (found while hunting lasse's bug)
svn:r5452
Diffstat (limited to 'src/or')
-rw-r--r--src/or/circuitbuild.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 6fc796f1f..9e542bd51 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1491,7 +1491,6 @@ onion_extend_cpath(uint8_t purpose, crypt_path_t **head_ptr,
int cur_len;
crypt_path_t *cpath;
extend_info_t *info = NULL;
- smartlist_t *excludednodes;
tor_assert(head_ptr);
@@ -1513,9 +1512,6 @@ onion_extend_cpath(uint8_t purpose, crypt_path_t **head_ptr,
debug(LD_CIRC, "Path is %d long; we want %d", cur_len,
state->desired_path_len);
- excludednodes = smartlist_create();
- add_nickname_list_to_smartlist(excludednodes,get_options()->ExcludeNodes,0,1);
-
if (cur_len == state->desired_path_len - 1) { /* Picking last node */
info = extend_info_dup(state->chosen_exit);
} else if (cur_len == 0) { /* picking first node */
@@ -1529,7 +1525,6 @@ onion_extend_cpath(uint8_t purpose, crypt_path_t **head_ptr,
info = extend_info_from_router(r);
}
- smartlist_free(excludednodes);
if (!info) {
warn(LD_CIRC,"Failed to find node for hop %d of our path. Discarding this circuit.", cur_len);
return -1;