From 0fbe7f31883787df9c6fe91a3869e5f3f6a2befe Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Tue, 4 Feb 2014 19:40:55 -0500 Subject: remove node_describe_by_id() function This function is not used anymore --- src/or/router.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/or/router.c') diff --git a/src/or/router.c b/src/or/router.c index 8f56eddef..fd0df52dc 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -2916,29 +2916,6 @@ node_describe(const node_t *node) return node_get_description(buf, node); } -/** Return a human-readable description of the node whose identity is - * identity_digest. If node_get_by_id() returns NULL, base 16 encoding - * of identity_digest is returned instead. - * - * This function is not thread-safe. Each call to this function invalidates - * previous values returned by this function. - */ -const char * -node_describe_by_id(const char *identity_digest) -{ - static char buf[NODE_DESC_BUF_LEN]; - const node_t *node = NULL; - - node = node_get_by_id(identity_digest); - if (!node) { - buf[0] = '$'; - base16_encode(buf+1, HEX_DIGEST_LEN+1, identity_digest, DIGEST_LEN); - return buf; - } else { - return node_get_description(buf, node); - } -} - /** Return a human-readable description of the routerstatus_t rs. * * This function is not thread-safe. Each call to this function invalidates -- cgit v1.2.3