p2p: remove dead protocol defs

This commit is contained in:
jeffro256 2024-12-27 15:22:19 -06:00
parent 941ecefab2
commit d64d3bd530
No known key found for this signature in database
GPG key ID: 6F79797A6E392442
2 changed files with 0 additions and 34 deletions

View file

@ -94,8 +94,6 @@ int main(int argc, char* argv[])
SL(nodetool::anchor_peerlist_entry);
SL(nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>>);
SL(nodetool::p2p_connection_context_t<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>::connection_context>);
SL(nodetool::network_address_old);
SL(nodetool::peerlist_entry_base<nodetool::network_address_old>);
SL(nodetool::network_config);
SL(nodetool::basic_node_data);

View file

@ -57,17 +57,6 @@ namespace nodetool
#pragma pack (push, 1)
struct network_address_old
{
uint32_t ip;
uint32_t port;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(ip)
KV_SERIALIZE(port)
END_KV_SERIALIZE_MAP()
};
template<typename AddressType>
struct peerlist_entry_base
{
@ -119,27 +108,6 @@ namespace nodetool
};
typedef anchor_peerlist_entry_base<epee::net_utils::network_address> anchor_peerlist_entry;
template<typename AddressType>
struct connection_entry_base
{
AddressType adr;
peerid_type id;
bool is_income;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(adr)
KV_SERIALIZE(id)
KV_SERIALIZE(is_income)
END_KV_SERIALIZE_MAP()
BEGIN_SERIALIZE()
FIELD(adr)
FIELD(id)
FIELD(is_income)
END_SERIALIZE()
};
typedef connection_entry_base<epee::net_utils::network_address> connection_entry;
#pragma pack(pop)
inline