Merge #10501: remove some unused functions
f228b8e
remove some unused functions (Marko Bencun) Pull request description: Identified with `cppcheck --enable=unusedFunction .`. - GetSendBufferSize()'s last use removed in991955e
- SetPort()'s last use removed in7e195e8
- GetfLargeWorkInvalidChainFound() was introduced ine3ba0ef
and never used Tree-SHA512: ea8e5498bec981e42e1342c171c37723c2f5e575c7d6c1a524d9c6cd9b332bdd0d84fddf9e14ca011bb49fb82bd037386382c9afc546b3c2231ae548358bd4f4
This commit is contained in:
commit
8a99fe053a
6 changed files with 0 additions and 16 deletions
|
@ -2694,7 +2694,6 @@ int CConnman::GetBestHeight() const
|
|||
}
|
||||
|
||||
unsigned int CConnman::GetReceiveFloodSize() const { return nReceiveFloodSize; }
|
||||
unsigned int CConnman::GetSendBufferSize() const{ return nSendBufferMaxSize; }
|
||||
|
||||
CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress& addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress &addrBindIn, const std::string& addrNameIn, bool fInboundIn) :
|
||||
nTimeConnected(GetSystemTimeInSeconds()),
|
||||
|
|
|
@ -242,8 +242,6 @@ public:
|
|||
bool DisconnectNode(const std::string& node);
|
||||
bool DisconnectNode(NodeId id);
|
||||
|
||||
unsigned int GetSendBufferSize() const;
|
||||
|
||||
ServiceFlags GetLocalServices() const;
|
||||
|
||||
//!set the max outbound target in bytes
|
||||
|
|
|
@ -598,11 +598,6 @@ std::string CService::ToString() const
|
|||
return ToStringIPPort();
|
||||
}
|
||||
|
||||
void CService::SetPort(unsigned short portIn)
|
||||
{
|
||||
port = portIn;
|
||||
}
|
||||
|
||||
CSubNet::CSubNet():
|
||||
valid(false)
|
||||
{
|
||||
|
|
|
@ -148,7 +148,6 @@ class CService : public CNetAddr
|
|||
CService(const struct in_addr& ipv4Addr, unsigned short port);
|
||||
CService(const struct sockaddr_in& addr);
|
||||
void Init();
|
||||
void SetPort(unsigned short portIn);
|
||||
unsigned short GetPort() const;
|
||||
bool GetSockAddr(struct sockaddr* paddr, socklen_t *addrlen) const;
|
||||
bool SetSockAddr(const struct sockaddr* paddr);
|
||||
|
|
|
@ -37,12 +37,6 @@ void SetfLargeWorkInvalidChainFound(bool flag)
|
|||
fLargeWorkInvalidChainFound = flag;
|
||||
}
|
||||
|
||||
bool GetfLargeWorkInvalidChainFound()
|
||||
{
|
||||
LOCK(cs_warnings);
|
||||
return fLargeWorkInvalidChainFound;
|
||||
}
|
||||
|
||||
std::string GetWarnings(const std::string& strFor)
|
||||
{
|
||||
std::string strStatusBar;
|
||||
|
|
|
@ -13,7 +13,6 @@ void SetMiscWarning(const std::string& strWarning);
|
|||
void SetfLargeWorkForkFound(bool flag);
|
||||
bool GetfLargeWorkForkFound();
|
||||
void SetfLargeWorkInvalidChainFound(bool flag);
|
||||
bool GetfLargeWorkInvalidChainFound();
|
||||
/** Format a string that describes several potential problems detected by the core.
|
||||
* strFor can have three values:
|
||||
* - "rpc": get critical warnings, which should put the client in safe mode if non-empty
|
||||
|
|
Loading…
Reference in a new issue