aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-11 11:17:46 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-11 11:17:46 -0400
commit9077118ee27e275d495b89a810ee28882c74cf62 (patch)
tree2613f71b31750547df334e49dca1c2498612d8e5 /src/or/routerlist.c
parentcbf9e742368158b927249913b395b3796d847a92 (diff)
downloadtor-9077118ee27e275d495b89a810ee28882c74cf62.tar
tor-9077118ee27e275d495b89a810ee28882c74cf62.tar.gz
Remove the unused router_hex_digest_matches
When I removed some unused functions in 5bfa373eeeb, this became unused as well.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index c28de24b6..cb39729ff 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2591,19 +2591,6 @@ router_is_named(const routerinfo_t *router)
tor_memeq(digest, router->cache_info.identity_digest, DIGEST_LEN));
}
-/** Return true iff the digest of <b>router</b>'s identity key,
- * encoded in hexadecimal, matches <b>hexdigest</b> (which is
- * optionally prefixed with a single dollar sign). Return false if
- * <b>hexdigest</b> is malformed, or it doesn't match. */
-static INLINE int
-router_hex_digest_matches(const routerinfo_t *router, const char *hexdigest)
-{
- return hex_digest_nickname_matches(hexdigest,
- router->cache_info.identity_digest,
- router->nickname,
- router_is_named(router));
-}
-
/** Return true iff <b>digest</b> is the digest of the identity key of a
* trusted directory matching at least one bit of <b>type</b>. If <b>type</b>
* is zero, any authority is okay. */