aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-10 18:40:27 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-10 18:40:27 +0000
commitb5c03f05d8a0cb2da5df8d784c526c6b8ed7620d (patch)
tree6b209e5c7b8bffff7967d095284f6e2918f4e098 /src/or/circuitbuild.c
parenta4db22f675f5bf14f054249aad801981b70ee08b (diff)
downloadtor-b5c03f05d8a0cb2da5df8d784c526c6b8ed7620d.tar.gz
tor-b5c03f05d8a0cb2da5df8d784c526c6b8ed7620d.zip
r14102@tombo: nickm | 2008-02-10 13:30:04 -0500
Remove some deadcode. svn:r13459
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 3216433a80..dcb70a2459 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1761,33 +1761,6 @@ extend_info_from_router(routerinfo_t *r)
r->onion_pkey, r->addr, r->or_port);
}
-#if 0
-/** What router purpose is <b>digest</b>?
- * It's a general purpose router unless it's on our bridges list.
- */
-static uint8_t
-get_router_purpose_from_digest(char *digest)
-{
- if (digest_is_a_bridge(digest))
- return ROUTER_PURPOSE_BRIDGE;
- return ROUTER_PURPOSE_GENERAL;
-}
-#endif
-
-#if 0
-/** Allocate and return a new extend_info_t that can be used to build a
- * circuit to or through the router <b>r</b>. */
-extend_info_t *
-extend_info_from_routerstatus(routerstatus_t *s)
-{
- tor_assert(s);
- /* routerstatus doesn't know onion_key; leave it NULL */
- return extend_info_alloc(s->nickname, s->identity_digest,
- NULL, s->addr, s->or_port);
-// get_router_purpose_from_digest(s->identity_digest));
-}
-#endif
-
/** Release storage held by an extend_info_t struct. */
void
extend_info_free(extend_info_t *info)