1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 18:44:35 +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 { 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. /// Construct new *signed* `CookieSessionBackend` instance.
/// ///
/// Panics if key length is less than 32 bytes. /// Panics if key length is less than 32 bytes.