diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-23 23:31:31 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-23 23:31:31 -0500 |
commit | 5bfa373eeeb2d76879fe8b0ea130724176f54e81 (patch) | |
tree | f3485ceec073bb6ed01a5a167c48096116115d08 /src/or/router.c | |
parent | 365e302f6153a99fc79b7bad8fafa1d61e839e55 (diff) | |
download | tor-5bfa373eeeb2d76879fe8b0ea130724176f54e81.tar.gz tor-5bfa373eeeb2d76879fe8b0ea130724176f54e81.zip |
Remove some totally unused functions
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/or/router.c b/src/or/router.c index 95aa70a9c4..0c3b67110d 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 |