]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Nobody calls circuit_launch_by_nickname; remove it.
authorNick Mathewson <nickm@torproject.org>
Mon, 29 Sep 2008 20:44:29 +0000 (20:44 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 29 Sep 2008 20:44:29 +0000 (20:44 +0000)
svn:r17006

src/or/circuituse.c
src/or/or.h

index 26e956ddb26c47ef01ecb21514c84d2460d756bd..467a195795b6dbdd33c06072824aaf727229f334 100644 (file)
@@ -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.
  */
index 7b87e3e3f729e458ce018db78d61604cbbff369c..81d662e1273cb5ca305f965e670933fb7ca3d15a 100644 (file)
@@ -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);