From 2cac6ebf0311a1f673f2156e751f5fe0507a232b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 10 Mar 2023 02:24:30 +0100 Subject: [PATCH] Remove some inaccurate comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both the referenced features were dropped in the final version of https://github.com/containers/image/pull/673 which added these comments. Signed-off-by: Miloslav Trmač --- copy/copy.go | 2 -- copy/single.go | 1 - 2 files changed, 3 deletions(-) diff --git a/copy/copy.go b/copy/copy.go index 3457f0b8cc..aa8d42b5f2 100644 --- a/copy/copy.go +++ b/copy/copy.go @@ -102,8 +102,6 @@ type Options struct { // If OciEncryptConfig is non-nil, it indicates that an image should be encrypted. // The encryption options is derived from the construction of EncryptConfig object. - // Note: During initial encryption process of a layer, the resultant digest is not known - // during creation, so newDigestingReader has to be set with validateDigest = false OciEncryptConfig *encconfig.EncryptConfig // OciEncryptLayers represents the list of layers to encrypt. // If nil, don't encrypt any layers. diff --git a/copy/single.go b/copy/single.go index 834722800a..0778e229aa 100644 --- a/copy/single.go +++ b/copy/single.go @@ -357,7 +357,6 @@ func (ic *imageCopier) copyLayers(ctx context.Context) error { return err } srcInfosUpdated := false - // If we only need to check authorization, no updates required. if updatedSrcInfos != nil && !reflect.DeepEqual(srcInfos, updatedSrcInfos) { if ic.cannotModifyManifestReason != "" { return fmt.Errorf("Copying this image would require changing layer representation, which we cannot do: %q", ic.cannotModifyManifestReason)