summaryrefslogtreecommitdiff
path: root/src/feature/dirparse/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-30 23:45:17 -0500
committerNick Mathewson <nickm@torproject.org>2018-10-01 00:09:00 -0500
commitaff5bf5464172bbbe549e147ebd4ba809a8b252c (patch)
treee8c4c035c2c8affaae0d2e53009858967efe5b6d /src/feature/dirparse/routerparse.c
parent31008317620c26ec9925592e1f867ef03a1125c4 (diff)
downloadtor-aff5bf5464172bbbe549e147ebd4ba809a8b252c.tar.gz
tor-aff5bf5464172bbbe549e147ebd4ba809a8b252c.zip
Remove addr_policy_assert_ok() as unused
Diffstat (limited to 'src/feature/dirparse/routerparse.c')
-rw-r--r--src/feature/dirparse/routerparse.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/feature/dirparse/routerparse.c b/src/feature/dirparse/routerparse.c
index 05013ef7f4..f661042fe2 100644
--- a/src/feature/dirparse/routerparse.c
+++ b/src/feature/dirparse/routerparse.c
@@ -3373,18 +3373,6 @@ router_parse_addr_policy_private(directory_token_t *tok)
return addr_policy_get_canonical_entry(&result);
}
-/** Log and exit if <b>t</b> is malformed */
-void
-assert_addr_policy_ok(smartlist_t *lst)
-{
- if (!lst) return;
- SMARTLIST_FOREACH(lst, addr_policy_t *, t, {
- tor_assert(t->policy_type == ADDR_POLICY_REJECT ||
- t->policy_type == ADDR_POLICY_ACCEPT);
- tor_assert(t->prt_min <= t->prt_max);
- });
-}
-
/** Return a newly allocated smartlist of all accept or reject tokens in
* <b>s</b>.
*/