From a1558066eae0465f0fe4c55a92fd387bcdada36c Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 9 May 2021 03:00:08 +0100 Subject: [PATCH] remove BoxedResponseBody take --- actix-http/src/message.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/actix-http/src/message.rs b/actix-http/src/message.rs index bf498b32c..0a3f3a915 100644 --- a/actix-http/src/message.rs +++ b/actix-http/src/message.rs @@ -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 {