aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorQingping Hou <dave2008713@gmail.com>2014-02-04 19:40:55 -0500
committerQingping Hou <dave2008713@gmail.com>2014-02-06 16:13:55 -0500
commit0fbe7f31883787df9c6fe91a3869e5f3f6a2befe (patch)
treeda097907254dcbe8d67cf472d5dbf7910cb0e923 /src/or
parentbf66ff915aa3b97922c3313542ed2f2f554d9c57 (diff)
downloadtor-0fbe7f31883787df9c6fe91a3869e5f3f6a2befe.tar
tor-0fbe7f31883787df9c6fe91a3869e5f3f6a2befe.tar.gz
remove node_describe_by_id() function
This function is not used anymore
Diffstat (limited to 'src/or')
-rw-r--r--src/or/router.c23
-rw-r--r--src/or/router.h1
2 files changed, 0 insertions, 24 deletions
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
- * <b>identity_digest</b>. If node_get_by_id() returns NULL, base 16 encoding
- * of <b>identity_digest</b> 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 <b>rs</b>.
*
* This function is not thread-safe. Each call to this function invalidates
diff --git a/src/or/router.h b/src/or/router.h
index a6271c3b3..1ee0577c8 100644
--- a/src/or/router.h
+++ b/src/or/router.h
@@ -132,7 +132,6 @@ const char *routerstatus_get_description(char *buf, const routerstatus_t *rs);
const char *extend_info_get_description(char *buf, const extend_info_t *ei);
const char *router_describe(const routerinfo_t *ri);
const char *node_describe(const node_t *node);
-const char *node_describe_by_id(const char *id_digest);
const char *routerstatus_describe(const routerstatus_t *ri);
const char *extend_info_describe(const extend_info_t *ei);