mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Remove routerstatus_format_entry() consensus_method argument as unused
This commit is contained in:
parent
441a048a3a
commit
8d94bcbf8c
@ -384,7 +384,6 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
|
||||
rsf = routerstatus_format_entry(&vrs->status,
|
||||
vrs->version, vrs->protocols,
|
||||
NS_V3_VOTE,
|
||||
ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD,
|
||||
vrs);
|
||||
if (rsf)
|
||||
smartlist_add(chunks, rsf);
|
||||
@ -2245,7 +2244,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
|
||||
/* Okay!! Now we can write the descriptor... */
|
||||
/* First line goes into "buf". */
|
||||
buf = routerstatus_format_entry(&rs_out, NULL, NULL,
|
||||
rs_format, consensus_method, NULL);
|
||||
rs_format, NULL);
|
||||
if (buf)
|
||||
smartlist_add(chunks, buf);
|
||||
}
|
||||
|
@ -49,10 +49,6 @@
|
||||
#define MIN_VOTE_INTERVAL_TESTING_INITIAL \
|
||||
((MIN_VOTE_SECONDS_TESTING)+(MIN_DIST_SECONDS_TESTING)+1)
|
||||
|
||||
/* A placeholder for routerstatus_format_entry() when the consensus method
|
||||
* argument is not applicable. */
|
||||
#define ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD 0
|
||||
|
||||
/** The lowest consensus method that we currently support. */
|
||||
#define MIN_SUPPORTED_CONSENSUS_METHOD 28
|
||||
|
||||
|
@ -27,10 +27,6 @@
|
||||
* allocated character buffer. Use the same format as in network-status
|
||||
* documents. If <b>version</b> is non-NULL, add a "v" line for the platform.
|
||||
*
|
||||
* consensus_method is the current consensus method when format is
|
||||
* NS_V3_CONSENSUS or NS_V3_CONSENSUS_MICRODESC. It is ignored for other
|
||||
* formats: pass ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD.
|
||||
*
|
||||
* Return 0 on success, -1 on failure.
|
||||
*
|
||||
* The format argument has one of the following values:
|
||||
@ -47,11 +43,8 @@ char *
|
||||
routerstatus_format_entry(const routerstatus_t *rs, const char *version,
|
||||
const char *protocols,
|
||||
routerstatus_format_type_t format,
|
||||
int consensus_method,
|
||||
const vote_routerstatus_t *vrs)
|
||||
{
|
||||
(void) consensus_method;
|
||||
|
||||
char *summary;
|
||||
char *result = NULL;
|
||||
|
||||
|
@ -35,7 +35,6 @@ char *routerstatus_format_entry(
|
||||
const char *version,
|
||||
const char *protocols,
|
||||
routerstatus_format_type_t format,
|
||||
int consensus_method,
|
||||
const vote_routerstatus_t *vrs);
|
||||
|
||||
#endif /* !defined(TOR_FMT_ROUTERSTATUS_H) */
|
||||
|
@ -2360,7 +2360,6 @@ char *
|
||||
networkstatus_getinfo_helper_single(const routerstatus_t *rs)
|
||||
{
|
||||
return routerstatus_format_entry(rs, NULL, NULL, NS_CONTROL_PORT,
|
||||
ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user