summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 7be98bd1a5..5f98abe01b 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5335,10 +5335,6 @@ routerset_contains(const routerset_t *set, const tor_addr_t *addr,
if (country < 0 && addr)
country = geoip_get_country_by_ip(tor_addr_to_ipv4h(addr));
- /* XXXX can we safely move this into geoip_get_country_by_ip? */
- if (country < 0)
- country = 0;
-
if (country >= 0 && country < set->n_countries &&
bitarray_is_set(set->countries, country))
return 2;