[#10799] Remove dead code

This commit is contained in:
Mathieu Magnin 2024-09-27 17:02:56 +02:00
parent e172f3ed6c
commit c897893e8a
No known key found for this signature in database
GPG key ID: 8DCAFC82D7BA654E
2 changed files with 0 additions and 29 deletions

View file

@ -18,10 +18,6 @@ module APIEntrepriseTokenConcern
self[:api_entreprise_token].presence || Rails.application.secrets.api_entreprise[:key]
end
def api_entreprise_token_expired?
APIEntrepriseToken.new(api_entreprise_token).expired?
end
def api_entreprise_token_expired_or_expires_soon?
api_entreprise_token_expires_at && api_entreprise_token_expires_at <= SOON_TO_EXPIRE_DELAY.from_now
end