From 9077118ee27e275d495b89a810ee28882c74cf62 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 11 Mar 2014 11:17:46 -0400 Subject: [PATCH] Remove the unused router_hex_digest_matches When I removed some unused functions in 5bfa373eeeb, this became unused as well. --- src/or/routerlist.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/or/routerlist.c b/src/or/routerlist.c index c28de24b66..cb39729ff5 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 router's identity key, - * encoded in hexadecimal, matches hexdigest (which is - * optionally prefixed with a single dollar sign). Return false if - * hexdigest 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 digest is the digest of the identity key of a * trusted directory matching at least one bit of type. If type * is zero, any authority is okay. */ -- 2.11.4.GIT