diff --git a/src/script/script.h b/src/script/script.h --- a/src/script/script.h +++ b/src/script/script.h @@ -631,24 +631,6 @@ } }; -struct CScriptWitness { - // Note that this encodes the data elements being pushed, rather than - // encoding them as a CScript that pushes them. - std::vector> stack; - - // Some compilers complain without a default constructor - CScriptWitness() {} - - bool IsNull() const { return stack.empty(); } - - void SetNull() { - stack.clear(); - stack.shrink_to_fit(); - } - - std::string ToString() const; -}; - class CReserveScript { public: CScript reserveScript; diff --git a/src/script/script.cpp b/src/script/script.cpp --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -462,14 +462,3 @@ bool CScript::IsPushOnly() const { return this->IsPushOnly(begin()); } - -std::string CScriptWitness::ToString() const { - std::string ret = "CScriptWitness("; - for (unsigned int i = 0; i < stack.size(); i++) { - if (i) { - ret += ", "; - } - ret += HexStr(stack[i]); - } - return ret + ")"; -}