Skip to content

Commit c0f45c5

Browse files
committed
Do not warn about deprecations yet
1 parent bb66d8c commit c0f45c5

File tree

5 files changed

+0
-7
lines changed

5 files changed

+0
-7
lines changed

lib/jwt/claims.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ module Claims
3434
class << self
3535
# @deprecated Use {verify_payload!} instead. Will be removed in the next major version of ruby-jwt.
3636
def verify!(payload, options)
37-
Deprecations.warning('The ::JWT::Claims.verify! method is deprecated will be removed in the next major version of ruby-jwt')
3837
DecodeVerifier.verify!(payload, options)
3938
end
4039

lib/jwt/claims/numeric.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def verify!
2222
def self.new(*args)
2323
return super if args.empty?
2424

25-
Deprecations.warning('Calling ::JWT::Claims::Numeric.new with the payload will be removed in the next major version of ruby-jwt')
2625
Compat.new(*args)
2726
end
2827

@@ -31,7 +30,6 @@ def verify!(context:)
3130
end
3231

3332
def self.verify!(payload:, **_args)
34-
Deprecations.warning('Calling ::JWT::Claims::Numeric.verify! with the payload will be removed in the next major version of ruby-jwt')
3533
JWT::Claims.verify_payload!(payload, :numeric)
3634
end
3735

lib/jwt/claims_validator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
module JWT
66
class ClaimsValidator
77
def initialize(payload)
8-
Deprecations.warning('The ::JWT::ClaimsValidator class is deprecated and will be removed in the next major version of ruby-jwt')
98
@payload = payload
109
end
1110

lib/jwt/jwa.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def resolve(algorithm)
4343
end
4444

4545
def create(algorithm)
46-
Deprecations.warning('The ::JWT::JWA.create method is deprecated and will be removed in the next major version of ruby-jwt.')
4746
resolve(algorithm)
4847
end
4948
end

lib/jwt/verify.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ class << self
1515
end
1616

1717
def verify_claims(payload, options)
18-
Deprecations.warning('The ::JWT::Verify.verify_claims method is deprecated and will be removed in the next major version of ruby-jwt')
1918
::JWT::Claims.verify!(payload, options)
2019
end
2120
end
2221

2322
def initialize(payload, options)
24-
Deprecations.warning('The ::JWT::Verify class is deprecated and will be removed in the next major version of ruby-jwt')
2523
@payload = payload
2624
@options = DEFAULTS.merge(options)
2725
end

0 commit comments

Comments
 (0)