From 9050b074840ea51073b8e27d57c1c23b71ae7f3f Mon Sep 17 00:00:00 2001 From: UncleGedd <42304551+UncleGedd@users.noreply.github.com> Date: Thu, 16 May 2024 08:02:05 -0500 Subject: [PATCH] chore: remove dead end code (#611) --- src/pkg/bundler/fetcher/remote.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pkg/bundler/fetcher/remote.go b/src/pkg/bundler/fetcher/remote.go index 97febbe8..27cfe510 100644 --- a/src/pkg/bundler/fetcher/remote.go +++ b/src/pkg/bundler/fetcher/remote.go @@ -6,7 +6,6 @@ package fetcher import ( "context" - "encoding/json" "fmt" "os" "path/filepath" @@ -62,17 +61,6 @@ func (f *remoteFetcher) Fetch() ([]ocispec.Descriptor, error) { // add layer to bundle's root manifest f.cfg.BundleRootManifest.Layers = append(f.cfg.BundleRootManifest.Layers, layerDesc) - } else if layerDesc.MediaType == zoci.ZarfConfigMediaType { - // read in and unmarshal zarf config - jsonData, err := os.ReadFile(filepath.Join(f.cfg.TmpDstDir, config.BlobsDir, layerDesc.Digest.Encoded())) - if err != nil { - return nil, err - } - var zarfConfigData oci.ConfigPartial - err = json.Unmarshal(jsonData, &zarfConfigData) - if err != nil { - return nil, err - } } }