@@ -261,7 +261,7 @@ struct zlib_test
261261
262262 results rs;
263263 auto n = buffers::copy (b, body_);
264- buffers::trim_front (body_, n);
264+ buffers::remove_prefix (body_, n);
265265 rs.bytes = n;
266266 rs.finished = (body_.size () == 0 );
267267 done_ = rs.finished ;
@@ -296,7 +296,7 @@ struct zlib_test
296296 {
297297 auto mbs = stream.prepare ();
298298 auto n = buffers::copy (mbs, body);
299- buffers::trim_front (body, n);
299+ buffers::remove_prefix (body, n);
300300 stream.commit (n);
301301 if (body.size () == 0 )
302302 stream.close ();
@@ -336,7 +336,7 @@ struct zlib_test
336336 buf_seq.emplace_back (
337337 body.data (),
338338 body.size () ? buf_size : 0 );
339- buffers::trim_front (body, buf_size);
339+ buffers::remove_prefix (body, buf_size);
340340 } while (body.size () != 0 );
341341
342342 sr.start (res, buf_seq);
@@ -483,7 +483,7 @@ struct zlib_test
483483 if (input.size () != 0 )
484484 {
485485 auto n1 = buffers::copy (pr.prepare (), input);
486- buffers::trim_front (input, n1);
486+ buffers::remove_prefix (input, n1);
487487 pr.commit (n1);
488488 }
489489
@@ -522,7 +522,7 @@ struct zlib_test
522522 {
523523 std::string rs;
524524 auto n1 = buffers::copy (pr.prepare (), input);
525- buffers::trim_front (input, n1);
525+ buffers::remove_prefix (input, n1);
526526 pr.commit (n1);
527527 system::error_code ec;
528528 pr.parse (ec);
@@ -535,7 +535,7 @@ struct zlib_test
535535 while (ec == error::need_data)
536536 {
537537 auto n2 = buffers::copy (pr.prepare (), input);
538- buffers::trim_front (input, n2);
538+ buffers::remove_prefix (input, n2);
539539 pr.commit (n2);
540540 pr.parse (ec);
541541 if (n2 == 0 )
@@ -555,7 +555,7 @@ struct zlib_test
555555 buffers::const_buffer input)
556556 {
557557 auto n1 = buffers::copy (pr.prepare (), input);
558- buffers::trim_front (input, n1);
558+ buffers::remove_prefix (input, n1);
559559 pr.commit (n1);
560560 system::error_code ec;
561561 pr.parse (ec);
@@ -596,7 +596,7 @@ struct zlib_test
596596 while (ec == error::need_data)
597597 {
598598 auto n2 = buffers::copy (pr.prepare (), input);
599- buffers::trim_front (input, n2);
599+ buffers::remove_prefix (input, n2);
600600 pr.commit (n2);
601601 pr.parse (ec);
602602 if (n2 == 0 )
0 commit comments