aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-18 14:19:53 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-18 14:19:53 +0000
commitc96167a6bdd59aac767c37631443d6cdd016bb1c (patch)
tree333bc8544d9f961c6a8fa94b94eea97d758cf2d3
parent59b1b0875341a1592e23d59639f364328e9b27ad (diff)
downloadtor-c96167a6bdd59aac767c37631443d6cdd016bb1c.tar
tor-c96167a6bdd59aac767c37631443d6cdd016bb1c.tar.gz
r15906@catbus: nickm | 2007-10-18 10:00:08 -0400
Remove the obsolete warned_conflicts field: a v3 consensus cannot conflict with itself. svn:r12019
-rw-r--r--src/or/networkstatus.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index f395d0103..a93001146 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -48,10 +48,6 @@ static time_t time_to_download_next_consensus = 0;
/** Download status for the current consensus networkstatus. */
static download_status_t consensus_dl_status = { 0, 0};
-/** List of strings for nicknames or fingerprints we've already warned about
- * and that are still conflicted. */ /*XXXX020 obsoleted by v3 dirs? */
-static smartlist_t *warned_conflicts = NULL;
-
/** True iff we have logged a warning about this OR not being valid or
* not being named. */
static int have_warned_about_invalid_status = 0;
@@ -76,11 +72,6 @@ networkstatus_reset_warnings(void)
rs->name_lookup_warned = 0);
}
- if (!warned_conflicts)
- warned_conflicts = smartlist_create();
- SMARTLIST_FOREACH(warned_conflicts, char *, cp, tor_free(cp));
- smartlist_clear(warned_conflicts); /* now the list is empty. */
-
have_warned_about_invalid_status = 0;
have_warned_about_old_version = 0;
have_warned_about_new_version = 0;
@@ -1312,11 +1303,6 @@ networkstatus_free_all(void)
current_consensus = NULL;
}
tor_free(consensus_waiting_for_certs_body);
- if (warned_conflicts) {
- SMARTLIST_FOREACH(warned_conflicts, char *, cp, tor_free(cp));
- smartlist_free(warned_conflicts);
- warned_conflicts = NULL;
- }
if (named_server_map) {
strmap_free(named_server_map, _tor_free);
}