remove BoxedResponseBody take

This commit is contained in:
Rob Ede 2021-05-09 03:00:08 +01:00
parent ce40201ab5
commit a1558066ea
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 0 additions and 8 deletions

View File

@ -389,14 +389,6 @@ impl BoxedResponseHead {
pub fn new(status: StatusCode) -> Self { pub fn new(status: StatusCode) -> Self {
RESPONSE_POOL.with(|p| p.get_message(status)) RESPONSE_POOL.with(|p| p.get_message(status))
} }
// used in: impl Future for Response
#[allow(dead_code)]
pub(crate) fn take(&mut self) -> Self {
BoxedResponseHead {
head: self.head.take(),
}
}
} }
impl std::ops::Deref for BoxedResponseHead { impl std::ops::Deref for BoxedResponseHead {