File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -264,19 +264,6 @@ class CDataStream
264
264
nVersion = nVersionIn;
265
265
}
266
266
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
-
280
267
std::string str () const
281
268
{
282
269
return (std::string (begin (), end ()));
@@ -462,11 +449,6 @@ class CDataStream
462
449
return (*this );
463
450
}
464
451
465
- void GetAndClear (CSerializeData &d) {
466
- d.insert (d.end (), begin (), end ());
467
- clear ();
468
- }
469
-
470
452
/* *
471
453
* XOR the contents of this stream with a certain key.
472
454
*
Original file line number Diff line number Diff line change @@ -342,11 +342,6 @@ BOOST_AUTO_TEST_CASE(insert_delete)
342
342
BOOST_CHECK_EQUAL (ss[1 ], 1 );
343
343
BOOST_CHECK_EQUAL (ss[2 ], 2 );
344
344
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 );
350
345
}
351
346
352
347
BOOST_AUTO_TEST_CASE (class_methods)
You can’t perform that action at this time.
0 commit comments