mirror of https://github.com/containers/podman.git
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:
parent
6da360a223
commit
d919a3666b
|
@ -668,18 +668,6 @@ func copyTrustedImageBlobToTarStream(ctx context.Context, imgSrc types.ImageSour
|
|||
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 {
|
||||
index := specV1.Index{
|
||||
MediaType: specV1.MediaTypeImageIndex,
|
||||
|
|
Loading…
Reference in New Issue