From 2b803f30c933d65b42c6afe2152a625bdf7c552f Mon Sep 17 00:00:00 2001 From: Alex Whitney Date: Mon, 9 Apr 2018 18:33:29 +0100 Subject: [PATCH] remove CookieSessionBackend::new --- src/middleware/session.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/middleware/session.rs b/src/middleware/session.rs index 6ad61d622..7964b855d 100644 --- a/src/middleware/session.rs +++ b/src/middleware/session.rs @@ -381,15 +381,6 @@ pub struct CookieSessionBackend(Rc); impl CookieSessionBackend { - /// Construct new signed `CookieSessionBackend` instance. - /// - /// Panics if key length is less than 32 bytes. - #[deprecated(since="0.5.0", note="use `signed` or `private` instead")] - pub fn new(key: &[u8]) -> CookieSessionBackend { - CookieSessionBackend( - Rc::new(CookieSessionInner::new(key, CookieSecurity::Signed))) - } - /// Construct new *signed* `CookieSessionBackend` instance. /// /// Panics if key length is less than 32 bytes.