From ffbbcebde07de86e84e4db68dc338949afbc2394 Mon Sep 17 00:00:00 2001 From: lestrrat <49281+lestrrat@users.noreply.github.com> Date: Sat, 26 Oct 2024 10:36:45 +0900 Subject: [PATCH] Remove non-applicable comment (#1224) Co-authored-by: Daisuke Maki --- jwe/options.yaml | 5 ----- jwe/options_gen.go | 5 ----- 2 files changed, 10 deletions(-) diff --git a/jwe/options.yaml b/jwe/options.yaml index 2d84793a..db8b1c08 100644 --- a/jwe/options.yaml +++ b/jwe/options.yaml @@ -90,11 +90,6 @@ options: WithMessage provides a message object to be populated by `jwe.Decrypt` Using this option allows you to decrypt AND obtain the `jwe.Message` in one go. - - Note that you should NOT be using the message object for anything other - than inspecting its contents. Particularly, do not expect the message - reliable when you call `Decrypt` on it. `(jwe.Message).Decrypt` is - slated to be deprecated in the next major version. - ident: RequireKid interface: WithKeySetSuboption argument_type: bool diff --git a/jwe/options_gen.go b/jwe/options_gen.go index b92b76fe..11e1a338 100644 --- a/jwe/options_gen.go +++ b/jwe/options_gen.go @@ -323,11 +323,6 @@ func WithMergeProtectedHeaders(v bool) EncryptOption { // WithMessage provides a message object to be populated by `jwe.Decrypt` // Using this option allows you to decrypt AND obtain the `jwe.Message` // in one go. -// -// Note that you should NOT be using the message object for anything other -// than inspecting its contents. Particularly, do not expect the message -// reliable when you call `Decrypt` on it. `(jwe.Message).Decrypt` is -// slated to be deprecated in the next major version. func WithMessage(v *Message) DecryptOption { return &decryptOption{option.New(identMessage{}, v)} }