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
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 *
Original file line number Diff line number Diff 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
352347BOOST_AUTO_TEST_CASE (class_methods)
You can’t perform that action at this time.
0 commit comments