Remove unused Print/PrintHex functions
You can just use HexStr(script) or script.ToString() for debugging, no need for these extra functions.
This commit is contained in:
11
src/script.h
11
src/script.h
@@ -691,12 +691,6 @@ public:
|
||||
void SetDestination(const CTxDestination& address);
|
||||
void SetMultisig(int nRequired, const std::vector<CPubKey>& keys);
|
||||
|
||||
|
||||
void PrintHex() const
|
||||
{
|
||||
LogPrintf("CScript(%s)\n", HexStr(begin(), end(), true).c_str());
|
||||
}
|
||||
|
||||
std::string ToString() const
|
||||
{
|
||||
std::string str;
|
||||
@@ -720,11 +714,6 @@ public:
|
||||
return str;
|
||||
}
|
||||
|
||||
void print() const
|
||||
{
|
||||
LogPrintf("%s\n", ToString());
|
||||
}
|
||||
|
||||
CScriptID GetID() const
|
||||
{
|
||||
return CScriptID(Hash160(*this));
|
||||
|
||||
Reference in New Issue
Block a user