mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
remove CookieSessionBackend::new
This commit is contained in:
parent
9b152acc32
commit
2b803f30c9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user