mirror of
https://github.com/moby/buildkit.git
synced 2026-06-24 08:47:57 +00:00
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:
committed by
Tonis Tiigi
parent
d66f8492d8
commit
4485d304c7
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user