aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-12 09:56:42 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-12 09:56:42 -0400
commit035fe2d208633c600ee7164f2eba2e1c4b24c5db (patch)
treecbad2f3cd4be0f0a8443aebddeb7594229f6e85b /src/or/nodelist.c
parent42b5e3cbb76eb4a7e0dcca8945217351c3ef1bb4 (diff)
downloadtor-035fe2d208633c600ee7164f2eba2e1c4b24c5db.tar.gz
tor-035fe2d208633c600ee7164f2eba2e1c4b24c5db.zip
Remove named_map and unnamed_map from networkstatus.c
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 394c3ae736..01a0e9e856 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -850,15 +850,6 @@ node_get_by_nickname,(const char *nickname, unsigned flags))
if (!strcasecmp(nickname, UNNAMED_ROUTER_NICKNAME))
return NULL;
- /* Okay, so if we get here, the nickname is just a nickname. Is there
- * a binding for it in the consensus? */
- {
- const char *named_id =
- networkstatus_get_router_digest_by_nickname(nickname);
- if (named_id)
- return node_get_by_id(named_id);
- }
-
/* Okay, so the name is not canonical for anybody. */
{
smartlist_t *matches = smartlist_new();