From 592afa8c73937fff234df518bafdc0fd795b10ef Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 25 Sep 2025 17:40:33 +0200 Subject: [PATCH] cli/command: remove deprecated DockerCli.ContentTrustEnabled This function was used internally, but is no longer used. Users should check the value of the `DOCKER_CONTENT_TRUST` environment variable instead. This method was deprecated in 11d40488dd818aadbb4757ff57da040479b4e9a6, which was included in the 28.5.0 release, and has no known external users, so removing it for 29.0 Signed-off-by: Sebastiaan van Stijn --- cli/command/cli.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cli/command/cli.go b/cli/command/cli.go index f3012abe3e..000a7f22e6 100644 --- a/cli/command/cli.go +++ b/cli/command/cli.go @@ -157,14 +157,6 @@ func (cli *DockerCli) ServerInfo() ServerInfo { return cli.serverInfo } -// ContentTrustEnabled returns whether content trust has been enabled by an -// environment variable. -// -// Deprecated: check the value of the DOCKER_CONTENT_TRUST environment variable to detect whether content-trust is enabled. -func (cli *DockerCli) ContentTrustEnabled() bool { - return cli.contentTrust -} - // BuildKitEnabled returns buildkit is enabled or not. func (cli *DockerCli) BuildKitEnabled() (bool, error) { // use DOCKER_BUILDKIT env var value if set and not empty