aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-23 23:31:31 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-23 23:31:31 -0500
commit5bfa373eeeb2d76879fe8b0ea130724176f54e81 (patch)
treef3485ceec073bb6ed01a5a167c48096116115d08 /src/or/router.c
parent365e302f6153a99fc79b7bad8fafa1d61e839e55 (diff)
downloadtor-5bfa373eeeb2d76879fe8b0ea130724176f54e81.tar
tor-5bfa373eeeb2d76879fe8b0ea130724176f54e81.tar.gz
Remove some totally unused functions
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 95aa70a9c..0c3b67110 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2966,23 +2966,6 @@ router_get_verbose_nickname(char *buf, const routerinfo_t *router)
strlcpy(buf+1+HEX_DIGEST_LEN+1, router->nickname, MAX_NICKNAME_LEN+1);
}
-/** Set <b>buf</b> (which must have MAX_VERBOSE_NICKNAME_LEN+1 bytes) to the
- * verbose representation of the identity of <b>router</b>. The format is:
- * A dollar sign.
- * The upper-case hexadecimal encoding of the SHA1 hash of router's identity.
- * A "=" if the router is named; a "~" if it is not.
- * The router's nickname.
- **/
-void
-routerstatus_get_verbose_nickname(char *buf, const routerstatus_t *router)
-{
- buf[0] = '$';
- base16_encode(buf+1, HEX_DIGEST_LEN+1, router->identity_digest,
- DIGEST_LEN);
- buf[1+HEX_DIGEST_LEN] = router->is_named ? '=' : '~';
- strlcpy(buf+1+HEX_DIGEST_LEN+1, router->nickname, MAX_NICKNAME_LEN+1);
-}
-
/** Forget that we have issued any router-related warnings, so that we'll
* warn again if we see the same errors. */
void