From d64d3bd5306175098704db704bb7fe41c57e4619 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Fri, 27 Dec 2024 15:22:19 -0600 Subject: [PATCH] p2p: remove dead protocol defs --- src/debug_utilities/object_sizes.cpp | 2 -- src/p2p/p2p_protocol_defs.h | 32 ---------------------------- 2 files changed, 34 deletions(-) diff --git a/src/debug_utilities/object_sizes.cpp b/src/debug_utilities/object_sizes.cpp index 7e94ed4c2..4d55449c2 100644 --- a/src/debug_utilities/object_sizes.cpp +++ b/src/debug_utilities/object_sizes.cpp @@ -94,8 +94,6 @@ int main(int argc, char* argv[]) SL(nodetool::anchor_peerlist_entry); SL(nodetool::node_server>); SL(nodetool::p2p_connection_context_t::connection_context>); - SL(nodetool::network_address_old); - SL(nodetool::peerlist_entry_base); SL(nodetool::network_config); SL(nodetool::basic_node_data); diff --git a/src/p2p/p2p_protocol_defs.h b/src/p2p/p2p_protocol_defs.h index 11d7d834c..5f0fb1bde 100644 --- a/src/p2p/p2p_protocol_defs.h +++ b/src/p2p/p2p_protocol_defs.h @@ -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 struct peerlist_entry_base { @@ -119,27 +108,6 @@ namespace nodetool }; typedef anchor_peerlist_entry_base anchor_peerlist_entry; - template - 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 connection_entry; - #pragma pack(pop) inline