1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-30 21:41:27 +00: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.