From 5c706b005afd2d7fdf0ad0fb5ebd08fedfbd01f9 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 19 Feb 2021 21:09:48 +0100 Subject: [PATCH] Remove deprecated fn --- src/decoding.rs | 7 ------- src/lib.rs | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/decoding.rs b/src/decoding.rs index 110fdcd..22ccf0d 100644 --- a/src/decoding.rs +++ b/src/decoding.rs @@ -262,13 +262,6 @@ pub fn dangerous_insecure_decode_with_validation( 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(token: &str) -> Result> { - dangerous_insecure_decode(token) -} /// Decode a JWT without any signature verification/validations and return its [Header](struct.Header.html). /// diff --git a/src/lib.rs b/src/lib.rs index c5c23b7..9108341 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,