mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
refactor: Remove unused CDataStream SerializeMany constructor
This commit is contained in:
parent
37fea41bbf
commit
fa47b28dfc
2 changed files with 2 additions and 9 deletions
|
@ -358,14 +358,6 @@ public:
|
|||
nType{nTypeIn},
|
||||
nVersion{nVersionIn} {}
|
||||
|
||||
template <typename... Args>
|
||||
CDataStream(int nTypeIn, int nVersionIn, Args&&... args)
|
||||
: nType{nTypeIn},
|
||||
nVersion{nVersionIn}
|
||||
{
|
||||
::SerializeMany(*this, std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
int GetType() const { return nType; }
|
||||
void SetVersion(int n) { nVersion = n; }
|
||||
int GetVersion() const { return nVersion; }
|
||||
|
|
|
@ -237,7 +237,8 @@ BOOST_AUTO_TEST_CASE(class_methods)
|
|||
BOOST_CHECK(methodtest2 == methodtest3);
|
||||
BOOST_CHECK(methodtest3 == methodtest4);
|
||||
|
||||
CDataStream ss2(SER_DISK, PROTOCOL_VERSION, intval, boolval, stringval, charstrval, txval);
|
||||
CDataStream ss2{SER_DISK, PROTOCOL_VERSION};
|
||||
ss2 << intval << boolval << stringval << charstrval << txval;
|
||||
ss2 >> methodtest3;
|
||||
BOOST_CHECK(methodtest3 == methodtest4);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue