Skip to content

Commit d64d3bd

Browse files
committed
p2p: remove dead protocol defs
1 parent 941ecef commit d64d3bd

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

src/debug_utilities/object_sizes.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ int main(int argc, char* argv[])
9494
SL(nodetool::anchor_peerlist_entry);
9595
SL(nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>>);
9696
SL(nodetool::p2p_connection_context_t<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>::connection_context>);
97-
SL(nodetool::network_address_old);
98-
SL(nodetool::peerlist_entry_base<nodetool::network_address_old>);
9997

10098
SL(nodetool::network_config);
10199
SL(nodetool::basic_node_data);

src/p2p/p2p_protocol_defs.h

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,6 @@ namespace nodetool
5757

5858
#pragma pack (push, 1)
5959

60-
struct network_address_old
61-
{
62-
uint32_t ip;
63-
uint32_t port;
64-
65-
BEGIN_KV_SERIALIZE_MAP()
66-
KV_SERIALIZE(ip)
67-
KV_SERIALIZE(port)
68-
END_KV_SERIALIZE_MAP()
69-
};
70-
7160
template<typename AddressType>
7261
struct peerlist_entry_base
7362
{
@@ -119,27 +108,6 @@ namespace nodetool
119108
};
120109
typedef anchor_peerlist_entry_base<epee::net_utils::network_address> anchor_peerlist_entry;
121110

122-
template<typename AddressType>
123-
struct connection_entry_base
124-
{
125-
AddressType adr;
126-
peerid_type id;
127-
bool is_income;
128-
129-
BEGIN_KV_SERIALIZE_MAP()
130-
KV_SERIALIZE(adr)
131-
KV_SERIALIZE(id)
132-
KV_SERIALIZE(is_income)
133-
END_KV_SERIALIZE_MAP()
134-
135-
BEGIN_SERIALIZE()
136-
FIELD(adr)
137-
FIELD(id)
138-
FIELD(is_income)
139-
END_SERIALIZE()
140-
};
141-
typedef connection_entry_base<epee::net_utils::network_address> connection_entry;
142-
143111
#pragma pack(pop)
144112

145113
inline

0 commit comments

Comments
 (0)