diff --git a/lib/jwt/claims.rb b/lib/jwt/claims.rb index e1732d7b..b63c1d25 100644 --- a/lib/jwt/claims.rb +++ b/lib/jwt/claims.rb @@ -34,7 +34,6 @@ module Claims class << self # @deprecated Use {verify_payload!} instead. Will be removed in the next major version of ruby-jwt. def verify!(payload, options) - Deprecations.warning('The ::JWT::Claims.verify! method is deprecated will be removed in the next major version of ruby-jwt') DecodeVerifier.verify!(payload, options) end diff --git a/lib/jwt/claims/numeric.rb b/lib/jwt/claims/numeric.rb index 5df2c942..6550c44a 100644 --- a/lib/jwt/claims/numeric.rb +++ b/lib/jwt/claims/numeric.rb @@ -22,7 +22,6 @@ def verify! def self.new(*args) return super if args.empty? - Deprecations.warning('Calling ::JWT::Claims::Numeric.new with the payload will be removed in the next major version of ruby-jwt') Compat.new(*args) end @@ -31,7 +30,6 @@ def verify!(context:) end def self.verify!(payload:, **_args) - Deprecations.warning('Calling ::JWT::Claims::Numeric.verify! with the payload will be removed in the next major version of ruby-jwt') JWT::Claims.verify_payload!(payload, :numeric) end diff --git a/lib/jwt/claims_validator.rb b/lib/jwt/claims_validator.rb index 05bf0abd..66a36a5f 100644 --- a/lib/jwt/claims_validator.rb +++ b/lib/jwt/claims_validator.rb @@ -5,7 +5,6 @@ module JWT class ClaimsValidator def initialize(payload) - Deprecations.warning('The ::JWT::ClaimsValidator class is deprecated and will be removed in the next major version of ruby-jwt') @payload = payload end diff --git a/lib/jwt/jwa.rb b/lib/jwt/jwa.rb index b069f98f..57b2a185 100644 --- a/lib/jwt/jwa.rb +++ b/lib/jwt/jwa.rb @@ -43,7 +43,6 @@ def resolve(algorithm) end def create(algorithm) - Deprecations.warning('The ::JWT::JWA.create method is deprecated and will be removed in the next major version of ruby-jwt.') resolve(algorithm) end end diff --git a/lib/jwt/verify.rb b/lib/jwt/verify.rb index 5eb891f3..f3556cef 100644 --- a/lib/jwt/verify.rb +++ b/lib/jwt/verify.rb @@ -15,13 +15,11 @@ class << self end def verify_claims(payload, options) - Deprecations.warning('The ::JWT::Verify.verify_claims method is deprecated and will be removed in the next major version of ruby-jwt') ::JWT::Claims.verify!(payload, options) end end def initialize(payload, options) - Deprecations.warning('The ::JWT::Verify class is deprecated and will be removed in the next major version of ruby-jwt') @payload = payload @options = DEFAULTS.merge(options) end