Skip to content

Commit 6a6b99f

Browse files
committed
refactor(body): remove unused Sender::send_data test helper
1 parent c63f737 commit 6a6b99f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/body/incoming.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -355,16 +355,6 @@ impl Sender {
355355
futures_util::future::poll_fn(|cx| self.poll_ready(cx)).await
356356
}
357357

358-
/// Send data on data channel when it is ready.
359-
#[cfg(test)]
360-
#[allow(unused)]
361-
pub(crate) async fn send_data(&mut self, chunk: Bytes) -> crate::Result<()> {
362-
self.ready().await?;
363-
self.data_tx
364-
.try_send(Ok(chunk))
365-
.map_err(|_| crate::Error::new_closed())
366-
}
367-
368358
/// Send trailers on trailers channel.
369359
#[allow(unused)]
370360
pub(crate) async fn send_trailers(&mut self, trailers: HeaderMap) -> crate::Result<()> {

0 commit comments

Comments
 (0)