1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

remove CookieSessionBackend::new

This commit is contained in:
Alex Whitney 2018-04-09 18:33:29 +01:00
parent 9b152acc32
commit 2b803f30c9

View File

@ -381,15 +381,6 @@ pub struct CookieSessionBackend(Rc<CookieSessionInner>);
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.