diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-29 20:44:29 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-29 20:44:29 +0000 |
commit | 9d950f7d25c91ede1b46fac7466add5cbf5a0d71 (patch) | |
tree | 60b81ff372a30e0792383b52cae32822e83079da | |
parent | 26aa741169c57e25c6db334facfa5ec68f4a85aa (diff) | |
download | tor-9d950f7d25c91ede1b46fac7466add5cbf5a0d71.tar.gz tor-9d950f7d25c91ede1b46fac7466add5cbf5a0d71.zip |
Nobody calls circuit_launch_by_nickname; remove it.
svn:r17006
-rw-r--r-- | src/or/circuituse.c | 19 | ||||
-rw-r--r-- | src/or/or.h | 3 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 26e956ddb2..467a195795 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -952,25 +952,6 @@ circuit_launch_by_extend_info(uint8_t purpose, return circuit_establish_circuit(purpose, extend_info, flags); } -/** Launch a new circuit; see circuit_launch_by_extend_info() for - * details on arguments. */ -origin_circuit_t * -circuit_launch_by_nickname(uint8_t purpose, - const char *exit_nickname, int flags) -{ - routerinfo_t *router = NULL; - - if (exit_nickname) { - router = router_get_by_nickname(exit_nickname, 1); - if (!router) { - log_warn(LD_GENERAL, "Trying to launch circ by nickname, but " - "no such OR as '%s'", exit_nickname); - return NULL; - } - } - return circuit_launch_by_router(purpose, router, flags); -} - /** Record another failure at opening a general circuit. When we have * too many, we'll stop trying for the remainder of this minute. */ diff --git a/src/or/or.h b/src/or/or.h index 7b87e3e3f7..81d662e127 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2769,9 +2769,6 @@ void circuit_build_failed(origin_circuit_t *circ); /** Flag to set when the last hop of a circuit doesn't need to be an * exit node. */ #define CIRCLAUNCH_IS_INTERNAL (1<<3) -origin_circuit_t *circuit_launch_by_nickname(uint8_t purpose, - const char *exit_nickname, - int flags); origin_circuit_t *circuit_launch_by_extend_info(uint8_t purpose, extend_info_t *info, int flags); |