mirror of https://github.com/fafhrd91/actix-web
remove BoxedResponseBody take
This commit is contained in:
parent
ce40201ab5
commit
a1558066ea
|
@ -389,14 +389,6 @@ impl BoxedResponseHead {
|
|||
pub fn new(status: StatusCode) -> Self {
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue