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:
parent
9b152acc32
commit
2b803f30c9
1 changed files with 0 additions and 9 deletions
|
@ -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 a new issue