Skip to content

Commit faa96f8

Browse files
author
MarcoFalke
committed
Remove unused CDataStream methods
1 parent 555b5d1 commit faa96f8

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

src/streams.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -264,19 +264,6 @@ class CDataStream
264264
nVersion = nVersionIn;
265265
}
266266

267-
CDataStream& operator+=(const CDataStream& b)
268-
{
269-
vch.insert(vch.end(), b.begin(), b.end());
270-
return *this;
271-
}
272-
273-
friend CDataStream operator+(const CDataStream& a, const CDataStream& b)
274-
{
275-
CDataStream ret = a;
276-
ret += b;
277-
return (ret);
278-
}
279-
280267
std::string str() const
281268
{
282269
return (std::string(begin(), end()));
@@ -462,11 +449,6 @@ class CDataStream
462449
return (*this);
463450
}
464451

465-
void GetAndClear(CSerializeData &d) {
466-
d.insert(d.end(), begin(), end());
467-
clear();
468-
}
469-
470452
/**
471453
* XOR the contents of this stream with a certain key.
472454
*

src/test/serialize_tests.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,6 @@ BOOST_AUTO_TEST_CASE(insert_delete)
342342
BOOST_CHECK_EQUAL(ss[1], 1);
343343
BOOST_CHECK_EQUAL(ss[2], 2);
344344
BOOST_CHECK_EQUAL(ss[3], (char)0xff);
345-
346-
// Make sure GetAndClear does the right thing:
347-
CSerializeData d;
348-
ss.GetAndClear(d);
349-
BOOST_CHECK_EQUAL(ss.size(), 0U);
350345
}
351346

352347
BOOST_AUTO_TEST_CASE(class_methods)

0 commit comments

Comments
 (0)