From fa8bbb1368be0f3fd9cc4446aead3f4c2188a4ab Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 19 May 2020 17:48:36 -0400 Subject: net: Use C++11 member initialization in protocol --- src/protocol.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/protocol.cpp') diff --git a/src/protocol.cpp b/src/protocol.cpp index 25851e786c..e929cff110 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -147,24 +147,6 @@ void SetServiceFlagsIBDCache(bool state) { g_initial_block_download_completed = state; } - -CAddress::CAddress() : CService() -{ - Init(); -} - -CAddress::CAddress(CService ipIn, ServiceFlags nServicesIn) : CService(ipIn) -{ - Init(); - nServices = nServicesIn; -} - -void CAddress::Init() -{ - nServices = NODE_NONE; - nTime = 100000000; -} - CInv::CInv() { type = 0; -- cgit v1.2.3