Skip to content

Commit fa47b28

Browse files
author
MarcoFalke
committed
refactor: Remove unused CDataStream SerializeMany constructor
1 parent 37fea41 commit fa47b28

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/streams.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,6 @@ class CDataStream : public DataStream
358358
nType{nTypeIn},
359359
nVersion{nVersionIn} {}
360360

361-
template <typename... Args>
362-
CDataStream(int nTypeIn, int nVersionIn, Args&&... args)
363-
: nType{nTypeIn},
364-
nVersion{nVersionIn}
365-
{
366-
::SerializeMany(*this, std::forward<Args>(args)...);
367-
}
368-
369361
int GetType() const { return nType; }
370362
void SetVersion(int n) { nVersion = n; }
371363
int GetVersion() const { return nVersion; }

src/test/serialize_tests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ BOOST_AUTO_TEST_CASE(class_methods)
237237
BOOST_CHECK(methodtest2 == methodtest3);
238238
BOOST_CHECK(methodtest3 == methodtest4);
239239

240-
CDataStream ss2(SER_DISK, PROTOCOL_VERSION, intval, boolval, stringval, charstrval, txval);
240+
CDataStream ss2{SER_DISK, PROTOCOL_VERSION};
241+
ss2 << intval << boolval << stringval << charstrval << txval;
241242
ss2 >> methodtest3;
242243
BOOST_CHECK(methodtest3 == methodtest4);
243244
}

0 commit comments

Comments
 (0)