aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-19 12:27:49 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-19 12:27:49 -0500
commitf739aa79620ad47051c4fd5f7e576899da7e80b5 (patch)
tree7a398e6193bb706a8603669410477c277c0988bf /src/feature/relay/dns.c
parent51b470dbc84786f656c8d1f26eb4ff84cc588d00 (diff)
downloadtor-f739aa79620ad47051c4fd5f7e576899da7e80b5.tar.gz
tor-f739aa79620ad47051c4fd5f7e576899da7e80b5.zip
Remove assert_all_pending_dns_resolves_ok().
It hasn't been used since 2009.
Diffstat (limited to 'src/feature/relay/dns.c')
-rw-r--r--src/feature/relay/dns.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c
index 5f4bddab9d..3ff1378df5 100644
--- a/src/feature/relay/dns.c
+++ b/src/feature/relay/dns.c
@@ -971,25 +971,6 @@ assert_connection_edge_not_dns_pending(edge_connection_t *conn)
#endif /* 1 */
}
-/** Log an error and abort if any connection waiting for a DNS resolve is
- * corrupted. */
-void
-assert_all_pending_dns_resolves_ok(void)
-{
- pending_connection_t *pend;
- cached_resolve_t **resolve;
-
- HT_FOREACH(resolve, cache_map, &cache_root) {
- for (pend = (*resolve)->pending_connections;
- pend;
- pend = pend->next) {
- assert_connection_ok(TO_CONN(pend->conn), 0);
- tor_assert(!SOCKET_OK(pend->conn->base_.s));
- tor_assert(!connection_in_array(TO_CONN(pend->conn)));
- }
- }
-}
-
/** Remove <b>conn</b> from the list of connections waiting for conn-\>address.
*/
void