From aff5bf5464172bbbe549e147ebd4ba809a8b252c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 30 Sep 2018 23:45:17 -0500 Subject: Remove addr_policy_assert_ok() as unused --- src/feature/dirparse/routerparse.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/feature/dirparse/routerparse.c') 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 t 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 * s. */ -- cgit v1.2.3-54-g00ecf