Remove deprecated fn

This commit is contained in:
Vincent Prouillet 2021-02-19 21:09:48 +01:00
parent 2c9c57fc4b
commit 5c706b005a
2 changed files with 0 additions and 9 deletions

View File

@ -262,13 +262,6 @@ pub fn dangerous_insecure_decode_with_validation<T: DeserializeOwned>(
Ok(TokenData { header, claims: decoded_claims })
}
/// Decode a JWT without any signature verification/validations. DEPRECATED.
#[deprecated(
note = "This function has been renamed to `dangerous_insecure_decode` and will be removed in a later version."
)]
pub fn dangerous_unsafe_decode<T: DeserializeOwned>(token: &str) -> Result<TokenData<T>> {
dangerous_insecure_decode(token)
}
/// Decode a JWT without any signature verification/validations and return its [Header](struct.Header.html).
///

View File

@ -16,8 +16,6 @@ mod serialization;
mod validation;
pub use algorithms::Algorithm;
#[allow(deprecated)]
pub use decoding::dangerous_unsafe_decode;
pub use decoding::{
dangerous_insecure_decode, dangerous_insecure_decode_with_validation, decode, decode_header,
DecodingKey, TokenData,