From dcce04e2c429a35a3c6147a47a95ec827c90f889 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Sat, 26 Oct 2024 09:49:46 +0900 Subject: [PATCH] Remove non-applicable comment --- 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 1e54b1f3..ad05110c 100644 --- a/jwe/options.yaml +++ b/jwe/options.yaml @@ -84,11 +84,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 98ba1c7a..11a538ea 100644 --- a/jwe/options_gen.go +++ b/jwe/options_gen.go @@ -311,11 +311,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)} }