pkg/libartifact: remove deadcode

Can always added back if it is really needed at some point.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2025-06-18 14:06:20 +02:00
parent 6da360a223
commit d919a3666b
No known key found for this signature in database
GPG Key ID: EB145DD938A3CAF2
1 changed files with 0 additions and 12 deletions

View File

@ -668,18 +668,6 @@ func copyTrustedImageBlobToTarStream(ctx context.Context, imgSrc types.ImageSour
return nil return nil
} }
// readIndex is currently unused but I want to keep this around until
// the artifact code is more mature.
func (as ArtifactStore) readIndex() (*specV1.Index, error) { //nolint:unused
index := specV1.Index{}
rawData, err := os.ReadFile(as.indexPath())
if err != nil {
return nil, err
}
err = json.Unmarshal(rawData, &index)
return &index, err
}
func (as ArtifactStore) createEmptyManifest() error { func (as ArtifactStore) createEmptyManifest() error {
index := specV1.Index{ index := specV1.Index{
MediaType: specV1.MediaTypeImageIndex, MediaType: specV1.MediaTypeImageIndex,