cleanup: remove populate_path_nodes_tcp

It was a no-op.
This commit is contained in:
zugz (tox) 2022-04-03 00:00:00 +00:00
parent 7a3ead591f
commit 4430515052
No known key found for this signature in database
GPG Key ID: 6F2BDA289D04F249
3 changed files with 1 additions and 17 deletions

View File

@ -1 +1 @@
f3781691aed256efccda556f5663a4ab95c460aa8c1d665667c8b80c44e4d630 /usr/local/bin/tox-bootstrapd
e1464fd52269f481bd529805f0e81f717c8586b0df93a0767507a6b2b8f3678b /usr/local/bin/tox-bootstrapd

View File

@ -1251,7 +1251,6 @@ Networking_Core *new_networking_no_udp(const Logger *log, const Network *ns)
net->ns = ns;
net->log = log;
net->ns = ns;
return net;
}

View File

@ -1540,19 +1540,6 @@ static void populate_path_nodes(Onion_Client *onion_c)
}
}
non_null()
static void populate_path_nodes_tcp(Onion_Client *onion_c)
{
Node_format node_list[MAX_SENT_NODES];
const unsigned int num_nodes = copy_connected_tcp_relays(onion_c->c, node_list, MAX_SENT_NODES);
for (unsigned int i = 0; i < num_nodes; ++i) {
// XXX: but ip_port is TCP, so will be rejected by onion_add_bs_path_node...
onion_add_bs_path_node(onion_c, &node_list[i].ip_port, node_list[i].public_key);
}
}
/* How often we ping new friends per node */
#define ANNOUNCE_FRIEND_NEW_INTERVAL 3
@ -1900,8 +1887,6 @@ void do_onion_client(Onion_Client *onion_c)
++onion_c->onion_connected;
}
} else {
populate_path_nodes_tcp(onion_c);
if (onion_c->onion_connected != 0) {
--onion_c->onion_connected;
}