From: svost Date: Wed, 30 Mar 2016 19:53:32 +0000 (+0300) Subject: Remove print() methods: all unused X-Git-Tag: nvc-v0.5.8~15^2^2~2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=a0bfbd64a8dc93eb87a452843f76dbb9dec9f30b Remove print() methods: all unused --- diff --git a/src/alert.cpp b/src/alert.cpp index 65927ed..ea2bc57 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -79,11 +79,6 @@ std::string CUnsignedAlert::ToString() const strStatusBar.c_str()); } -void CUnsignedAlert::print() const -{ - printf("%s", ToString().c_str()); -} - void CAlert::SetNull() { CUnsignedAlert::SetNull(); diff --git a/src/alert.h b/src/alert.h index 3e4dd53..c417842 100644 --- a/src/alert.h +++ b/src/alert.h @@ -61,7 +61,6 @@ public: void SetNull(); std::string ToString() const; - void print() const; }; /** An alert is a combination of a serialized CUnsignedAlert and a signature. */ diff --git a/src/checkpoints.h b/src/checkpoints.h index 0250618..a2b9731 100644 --- a/src/checkpoints.h +++ b/src/checkpoints.h @@ -100,11 +100,6 @@ public: nVersion, hashCheckpoint.ToString().c_str()); } - - void print() const - { - printf("%s", ToString().c_str()); - } }; class CSyncCheckpoint : public CUnsignedSyncCheckpoint diff --git a/src/miner.cpp b/src/miner.cpp index 5d01bb2..aae9589 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -70,14 +70,6 @@ public: ptx = ptxIn; dPriority = dFeePerKb = 0; } - - void print() const - { - printf("COrphan(hash=%s, dPriority=%.1f, dFeePerKb=%.1f)\n", - ptx->GetHash().ToString().substr(0,10).c_str(), dPriority, dFeePerKb); - BOOST_FOREACH(uint256 hash, setDependsOn) - printf(" setDependsOn %s\n", hash.ToString().substr(0,10).c_str()); - } }; diff --git a/src/netbase.cpp b/src/netbase.cpp index 4699abf..b68a43a 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -923,11 +923,6 @@ uint64_t CNetAddr::GetHash() const return nRet; } -void CNetAddr::print() const -{ - printf("CNetAddr(%s)\n", ToString().c_str()); -} - // private extensions to enum Network, only returned by GetExtNetwork, // and only used in GetReachabilityFrom static const int NET_UNKNOWN = NET_MAX + 0; @@ -1170,11 +1165,6 @@ std::string CService::ToString() const return ToStringIPPort(); } -void CService::print() const -{ - printf("CService(%s)\n", ToString().c_str()); -} - void CService::SetPort(unsigned short portIn) { port = portIn; diff --git a/src/netbase.h b/src/netbase.h index 7e995f6..95f93e9 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -71,7 +71,6 @@ class CNetAddr bool GetInAddr(struct in_addr* pipv4Addr) const; std::vector GetGroup() const; int GetReachabilityFrom(const CNetAddr *paddrPartner = NULL) const; - void print() const; #ifdef USE_IPV6 CNetAddr(const struct in6_addr& pipv6Addr); @@ -115,7 +114,6 @@ class CService : public CNetAddr std::string ToString() const; std::string ToStringPort() const; std::string ToStringIPPort() const; - void print() const; #ifdef USE_IPV6 CService(const struct in6_addr& ipv6Addr, uint16_t port); diff --git a/src/protocol.cpp b/src/protocol.cpp index 8ee8304..c9b0086 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -103,10 +103,4 @@ const char* CInv::GetCommand() const std::string CInv::ToString() const { return strprintf("%s %s", GetCommand(), hash.ToString().substr(0,20).c_str()); -} - -void CInv::print() const -{ - printf("CInv(%s)\n", ToString().c_str()); -} - +} \ No newline at end of file diff --git a/src/protocol.h b/src/protocol.h index ece6184..fcc8c9e 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -93,8 +93,6 @@ class CAddress : public CService READWRITE(*pip); ) - void print() const; - // TODO: make private (improves encapsulation) public: uint64_t nServices; @@ -125,7 +123,6 @@ class CInv bool IsKnownType() const; const char* GetCommand() const; std::string ToString() const; - void print() const; // TODO: make private (improves encapsulation) public: diff --git a/src/wallet.h b/src/wallet.h index 4db32e5..34540fd 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -891,11 +891,6 @@ public: { return strprintf("COutput(%s, %d, %d, %d) [%s]", tx->GetHash().ToString().substr(0,10).c_str(), i, fSpendable, nDepth, FormatMoney(tx->vout[i].nValue).c_str()); } - - void print() const - { - printf("%s\n", ToString().c_str()); - } };