From 01d6d3c1ac5e2abbc7be05dcb7c372ee1d6a9f89 Mon Sep 17 00:00:00 2001 From: Michael Kelly Date: Wed, 13 Nov 2024 15:17:29 -0800 Subject: [PATCH] Remove unused RPMReader method Signed-off-by: Michael Kelly --- pkg/rpm/tar.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/rpm/tar.go b/pkg/rpm/tar.go index d6aca48..c5c5fc7 100644 --- a/pkg/rpm/tar.go +++ b/pkg/rpm/tar.go @@ -49,18 +49,6 @@ func RPMToCPIO(rpmReader io.Reader) (*cpio.CpioStream, error) { return cpio.NewCpioStream(payloadReader), nil } -func RPMReader(rpmReader io.Reader, tarWriter *tar.Writer) error { - rpm, err := rpmutils.ReadRpm(rpmReader) - if err != nil { - return fmt.Errorf("failed to read rpm: %s", err) - } - payloadReader, err := rpm.RawUncompressedRPMPayloadReader() - if err != nil { - return fmt.Errorf("failed to open the payload reader: %s", err) - } - return cpio.Tar(payloadReader, tarWriter) -} - func PrefixFilter(prefix string, reader *tar.Reader, files []string) error { prefix = strings.TrimPrefix(prefix, ".")