exporter/containerimage: remove unused EnableForceCompression

This helper has not been used for some time.

Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
This commit is contained in:
Bjorn Neergaard
2025-07-17 16:24:27 -06:00
committed by Tonis Tiigi
parent d66f8492d8
commit 4485d304c7

View File

@@ -90,18 +90,6 @@ func (c *ImageCommitOpts) EnableOCITypes(ctx context.Context, reason string) {
}
}
func (c *ImageCommitOpts) EnableForceCompression(ctx context.Context, reason string) {
if !c.RefCfg.Compression.Force {
message := "forcibly turning on force-compression mode"
if reason != "" {
message += " for " + reason
}
bklog.G(ctx).Warn(message)
c.RefCfg.Compression.Force = true
}
}
func parseBool(dest *bool, key string, value string) error {
b, err := strconv.ParseBool(value)
if err != nil {